Blame view

src/api/demo/select.ts 350 Bytes
1
import { defHttp } from '/@/utils/http/axios';
2
import { DemoOptionsItem, selectParams } 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 = (params?: selectParams) =>
11
  defHttp.get<DemoOptionsItem[]>({ url: Api.OPTIONS_LIST, params });