123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- import { defHttp } from '/@/utils/http/axios';
- import { PageParams, RentListGetResultModel, addCamerParams } from './model';
- enum Api {
- pageList = '/zfb-api/zfb/camera/pageList',
- addCamera = '/zfb-api/zfb/camera/add',
- allCompany = '/zfb-api/zfb/company/listAll',
- }
- /**
- * @description: Get sample list value
- */
- export const ListApi = (params: PageParams) =>
- defHttp.post<RentListGetResultModel>({
- url: Api.pageList,
- params,
- headers: {
- // @ts-ignore
- ignoreCancelToken: true,
- },
- });
- // export const ListApi = (params: PageParams) =>
- // defHttp.post<RentListGetResultModel>({
- // url: Api.pageList,
- // params,
- // headers: {
- // // @ts-ignore
- // ignoreCancelToken: true,
- // },
- // });
- export const allCompanyApi = (params: PageParams) =>
- defHttp.post<RentListGetResultModel>({
- url: Api.allCompany,
- params,
- headers: {
- // @ts-ignore
- ignoreCancelToken: true,
- },
- });
- export const addCameraApi = (params: addCamerParams) =>
- defHttp.post<RentListGetResultModel>({
- url: Api.addCamera,
- params,
- headers: {
- // @ts-ignore
- ignoreCancelToken: true,
- },
- });
|