Blame view

src/api/demo/select.ts 305 Bytes
1
import { defHttp } from '/@/utils/http/axios';
2
import { DemoOptionsItem } from './model/optionsModel';
3
4
5
6
7
8
9
enum Api {
  OPTIONS_LIST = '/select/getDemoOptions',
}

/**
 * @description: Get sample options value
 */
10
export const optionsListApi = () => defHttp.get<DemoOptionsItem[]>({ url: Api.OPTIONS_LIST });