table.ts 425 B

1234567891011121314151617181920
  1. import { defHttp } from '/@/utils/http/axios';
  2. import { DemoParams, DemoListGetResultModel } from './model/tableModel';
  3. enum Api {
  4. DEMO_LIST = '/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. // @ts-ignore
  15. ignoreCancelToken: true,
  16. },
  17. });