select.ts 350 B

1234567891011
  1. import { defHttp } from '/@/utils/http/axios';
  2. import { DemoOptionsItem, selectParams } from './model/optionsModel';
  3. enum Api {
  4. OPTIONS_LIST = '/select/getDemoOptions',
  5. }
  6. /**
  7. * @description: Get sample options value
  8. */
  9. export const optionsListApi = (params?: selectParams) =>
  10. defHttp.get<DemoOptionsItem[]>({ url: Api.OPTIONS_LIST, params });