import { defHttp } from '/@/utils/http/axios'; import { PageParams, operateList, sceneMoveParams, sceneControlParams, RentListGetResultModel, addCameraParams, updateParams, } from './model'; import { Result } from '/#/axios'; enum Api { pageList = '/newV4/service/manage/news/pageNews', operateSceneList = '/newV4/service/manage/scene/list', sceneMove = '/newV4/service/manage/scene/move', sceneDelete = '/newV4/service/manage/scene/delete', sceneDownload = '/newV4/service/manage/scene/downScene', sceneCopy = '/newV4/service/manage/scene/copy', checkDownLoad = '/newV4/service/manage/scene/checkDownLoad', downloadProcess = '/newV4/service/manage/scene/downloadProcess', rebuildScene = '/newV4/service/manage/scene/rebuildScene', overallList = '/newV4/service/manage/overall/list', overallDelete = '/newV4/service/manage/overall/delete', } /** * @description: Get sample list value */ export const ListApi = (params: PageParams) => defHttp.post({ url: Api.pageList, params: params, // data: params, headers: { // @ts-ignore ignoreCancelToken: true, }, }); export const operateSceneList = (params: operateList) => defHttp.post({ url: Api.operateSceneList, params: params, // data: params, headers: { // @ts-ignore ignoreCancelToken: true, }, }); export const overallList = (params: overallList) => defHttp.post({ url: Api.overallList, params: params, // data: params, headers: { // @ts-ignore ignoreCancelToken: true, }, }); export const overallDelete = (params: overallList) => defHttp.post({ url: Api.overallDelete, params: params, // data: params, headers: { // @ts-ignore ignoreCancelToken: true, }, }); export const sceneMove = (params: sceneMoveParams) => defHttp.post({ url: Api.sceneMove, params: params, // data: params, headers: { // @ts-ignore ignoreCancelToken: true, }, }); export const rebuildScene = (params: sceneControlParams) => defHttp.get({ url: Api.rebuildScene, params: params, // data: params, headers: { // @ts-ignore ignoreCancelToken: true, }, }); export const sceneDelete = (params: sceneControlParams) => defHttp.post({ url: Api.sceneDelete, params: params, // data: params, headers: { // @ts-ignore ignoreCancelToken: true, }, }); export const checkDownLoad = (params: sceneControlParams) => defHttp.get({ url: Api.checkDownLoad, params: params, // data: params, headers: { // @ts-ignore ignoreCancelToken: true, }, }); export const sceneDownload = (params: sceneControlParams) => defHttp.get({ url: Api.sceneDownload, params: params, // data: params, headers: { // @ts-ignore ignoreCancelToken: true, }, }); export const downloadProcess = (params: sceneControlParams) => defHttp.get({ url: Api.downloadProcess, params: params, // data: params, headers: { // @ts-ignore ignoreCancelToken: true, }, }); export const sceneCopy = (params: sceneControlParams) => defHttp.post({ url: Api.sceneCopy, params: params, // data: params, headers: { // @ts-ignore ignoreCancelToken: true, }, }); // export const unDeviceApi = (params: PageParams) => // defHttp.post({ // url: Api.unbindDevice, // params, // headers: { // // @ts-ignore // ignoreCancelToken: true, // }, // }); // export const allCompanyApi = (params: PageParams) => // defHttp.post({ // url: Api.allCompany, // params, // headers: { // // @ts-ignore // ignoreCancelToken: true, // }, // }); // export const addCameraApi = (params: addCameraParams) => // defHttp.post({ // url: Api.addCamera, // params, // headers: { // // @ts-ignore // ignoreCancelToken: true, // }, // }); // export const editCameraApi = (params: addCameraParams) => // defHttp.post({ // url: Api.editCamera, // params, // headers: { // // @ts-ignore // ignoreCancelToken: true, // }, // }); // export const updateLiveRoomInfoApi = (params: updateParams) => // defHttp.post({ // url: Api.updateLiveRoomInfo, // params, // headers: { // // @ts-ignore // ignoreCancelToken: true, // }, // });