12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- import { defHttp } from '/@/utils/http/axios';
- import {
- PageParams,
- operateList,
- RentListGetResultModel,
- addCameraParams,
- updateParams,
- } from './model';
- import { Result } from '/#/axios';
- enum Api {
- pageList = '/newV4/service/manage/news/pageNews',
- operateSceneList = '/newV4/service/manage/scene/list',
- }
- /**
- * @description: Get sample list value
- */
- export const ListApi = (params: PageParams) =>
- defHttp.post<RentListGetResultModel>({
- url: Api.pageList,
- params: params,
- // data: params,
- headers: {
- // @ts-ignore
- ignoreCancelToken: true,
- },
- });
- export const operateSceneList = (params: operateList) =>
- defHttp.post<Result>({
- url: Api.operateSceneList,
- params: params,
- // data: params,
- headers: {
- // @ts-ignore
- ignoreCancelToken: true,
- },
- });
- // export const unDeviceApi = (params: PageParams) =>
- // defHttp.post<RentListGetResultModel>({
- // url: Api.unbindDevice,
- // 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,
- // },
- // });
|