huangyinfeng
2024-09-20 74a35fac4332a8b060a92c605524ed12faf2755a
提交 | 用户 | age
4d2fb0 1 import { defHttp } from '@/utils/http/axios';
faf3f4 2 import { DemoParams, DemoListGetResultModel } from './model/tableModel';
3
4 enum Api {
5   DEMO_LIST = '/table/getDemoList',
6 }
7
8 /**
4ff6b7 9  * @description: Get sample list value
faf3f4 10  */
a821d9 11
V 12 export const demoListApi = (params: DemoParams) =>
11d3f3 13   defHttp.get<DemoListGetResultModel>({
faf3f4 14     url: Api.DEMO_LIST,
15     params,
7a0003 16     headers: {
dc4b05 17       // @ts-ignore
7a0003 18       ignoreCancelToken: true,
V 19     },
faf3f4 20   });