table.ts 423 B

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