Blame view

src/api/demo/table.ts 425 Bytes
1
2
3
4
5
6
7
8
import { defHttp } from '/@/utils/http/axios';
import { DemoParams, DemoListGetResultModel } from './model/tableModel';

enum Api {
  DEMO_LIST = '/table/getDemoList',
}

/**
9
 * @description: Get sample list value
10
 */
Vben authored
11
12

export const demoListApi = (params: DemoParams) =>
13
  defHttp.get<DemoListGetResultModel>({
14
15
    url: Api.DEMO_LIST,
    params,
16
    headers: {
17
      // @ts-ignore
18
19
      ignoreCancelToken: true,
    },
20
  });