table.ts 410 B

12345678910111213141516171819
  1. import { defHttp } from '/@/utils/http/axios';
  2. import { DemoParams, DemoListGetResultModel } from './model/tableModel';
  3. enum Api {
  4. DEMO_LIST = '/mock/table/getDemoList',
  5. }
  6. /**
  7. * @description: Get sample list value
  8. */
  9. export const demoListApi = (params: DemoParams) =>
  10. defHttp.get<DemoListGetResultModel>({
  11. url: Api.DEMO_LIST,
  12. params,
  13. headers: {
  14. ignoreCancelToken: true,
  15. },
  16. });