123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- import { defHttp } from '/@/utils/http/axios';
- import {
- PageParams,
- RentListGetResultModel,
- InvoiceListResul,
- addCameraParams,
- updateParams,
- getItemParams,
- } from './model';
- import { Result } from '/#/axios';
- enum Api {
- cameraList = '/newV4/service/manage/order/camera/list',
- cameraExport = '/newV4/service/manage/order/camera/export',
- cameraItem = '/newV4/service/manage/order/camera/item',
- incrementList = '/newV4/service/manage/order/increment/list',
- incrementExport = '/newV4/service/manage/order/increment/export',
- downList = '/newV4/service/manage/order/down/list',
- downExport = '/newV4/service/manage/order/down/export',
- pageInvoice = '/newV4/service/manage/invoice/pageInvoice',
- }
- /**
- * @description: Get sample list value
- */
- export const CameraList = (params: PageParams) =>
- defHttp.post<Result>({
- url: Api.cameraList,
- params: params,
- // data: params,
- headers: {
- // @ts-ignore
- ignoreCancelToken: true,
- },
- });
- /**
- * @description: Get sample list value
- */
- export const CameraItem = (params: getItemParams) =>
- defHttp.get<Result>({
- url: Api.cameraItem,
- params,
- data: params,
- headers: {
- // @ts-ignore
- ignoreCancelToken: true,
- },
- });
- /**
- * @description: 导出订单
- */
- export const CameraExport = (params: PageParams) =>
- defHttp.post<Result>({
- url: Api.cameraExport,
- params: params,
- // data: params,
- headers: {
- // @ts-ignore
- ignoreCancelToken: true,
- },
- });
- /**
- * @description: Get sample list value
- */
- export const IncrementExport = (params: PageParams) =>
- defHttp.get<Result>({
- url: Api.incrementExport,
- params: params,
- // data: params,
- headers: {
- // @ts-ignore
- ignoreCancelToken: true,
- },
- });
- export const IncrementList = (params: PageParams) =>
- defHttp.post<Result>({
- url: Api.incrementList,
- params: params,
- // data: params,
- headers: {
- // @ts-ignore
- ignoreCancelToken: true,
- },
- });
- export const DownExport = (params: PageParams) =>
- defHttp.get<Result>({
- url: Api.downExport,
- params: params,
- // data: params,
- headers: {
- // @ts-ignore
- ignoreCancelToken: true,
- },
- });
- export const DownList = (params: PageParams) =>
- defHttp.post<Result>({
- url: Api.downList,
- params: params,
- // data: params,
- headers: {
- // @ts-ignore
- ignoreCancelToken: true,
- },
- });
- export const InvoiceList = (params: PageParams) =>
- defHttp.post<InvoiceListResul>({
- url: Api.pageInvoice,
- 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: addCameraParams) =>
- // defHttp.post<RentListGetResultModel>({
- // url: Api.addCamera,
- // params,
- // headers: {
- // // @ts-ignore
- // ignoreCancelToken: true,
- // },
- // });
- // export const editCameraApi = (params: addCameraParams) =>
- // defHttp.post<RentListGetResultModel>({
- // url: Api.editCamera,
- // params,
- // headers: {
- // // @ts-ignore
- // ignoreCancelToken: true,
- // },
- // });
- // export const updateLiveRoomInfoApi = (params: updateParams) =>
- // defHttp.post<Result>({
- // url: Api.updateLiveRoomInfo,
- // params,
- // headers: {
- // // @ts-ignore
- // ignoreCancelToken: true,
- // },
- // });
|