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