Blame view

src/api/demo/select.ts 326 Bytes
1
2
3
4
5
6
7
8
9
10
import { defHttp } from '/@/utils/http/axios';
import { DemoOptionsGetResultModel } from './model/optionsModel';

enum Api {
  OPTIONS_LIST = '/select/getDemoOptions',
}

/**
 * @description: Get sample options value
 */
11
12
export const optionsListApi = () =>
  defHttp.get<DemoOptionsGetResultModel>({ url: Api.OPTIONS_LIST });