123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- 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<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 overallList = (params: overallList) =>
- defHttp.post<Result>({
- url: Api.overallList,
- params: params,
- // data: params,
- headers: {
- // @ts-ignore
- ignoreCancelToken: true,
- },
- });
- export const overallDelete = (params: overallList) =>
- defHttp.post<Result>({
- url: Api.overallDelete,
- params: params,
- // data: params,
- headers: {
- // @ts-ignore
- ignoreCancelToken: true,
- },
- });
- export const sceneMove = (params: sceneMoveParams) =>
- defHttp.post<Result>({
- url: Api.sceneMove,
- params: params,
- // data: params,
- headers: {
- // @ts-ignore
- ignoreCancelToken: true,
- },
- });
- export const rebuildScene = (params: sceneControlParams) =>
- defHttp.get<Result>({
- url: Api.rebuildScene,
- params: params,
- // data: params,
- headers: {
- // @ts-ignore
- ignoreCancelToken: true,
- },
- });
- export const sceneDelete = (params: sceneControlParams) =>
- defHttp.post<Result>({
- url: Api.sceneDelete,
- params: params,
- // data: params,
- headers: {
- // @ts-ignore
- ignoreCancelToken: true,
- },
- });
- export const checkDownLoad = (params: sceneControlParams) =>
- defHttp.get<Result>({
- url: Api.checkDownLoad,
- params: params,
- // data: params,
- headers: {
- // @ts-ignore
- ignoreCancelToken: true,
- },
- });
- export const sceneDownload = (params: sceneControlParams) =>
- defHttp.get<Result>({
- url: Api.sceneDownload,
- params: params,
- // data: params,
- headers: {
- // @ts-ignore
- ignoreCancelToken: true,
- },
- });
- export const downloadProcess = (params: sceneControlParams) =>
- defHttp.get<Result>({
- url: Api.downloadProcess,
- params: params,
- // data: params,
- headers: {
- // @ts-ignore
- ignoreCancelToken: true,
- },
- });
- export const sceneCopy = (params: sceneControlParams) =>
- defHttp.post<Result>({
- url: Api.sceneCopy,
- 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,
- // },
- // });
|