tplink接口路径修改

This commit is contained in:
曹磊 2025-06-30 09:26:40 +08:00
parent 9a7c2aa6ed
commit b55c7de2d6
4 changed files with 78 additions and 62 deletions

View File

@ -1,43 +1,45 @@
import { defHttp } from '/@/utils/http/axios';
enum Api {
queryProjectTreeSync = '/iot/projectInfo/queryRegionTreeSync',
queryRegionTreeSync = '/iot/regionInfo/queryRegionTreeSync',
syncProject = '/iot/projectInfo/sync',
syncRegion = '/iot/regionInfo/sync',
list = '/iot/cameraInfo/list',
ipcCapability = '/iot/cameraInfo/getIpcCapability',
nuList = '/iot/cameraInfo/nuList',
edit = '/iot/cameraInfo/edit',
rebootDevice = '/iot/cameraInfo/rebootDevice',
previewUrl = '/iot/cameraInfo/getPreviewUrl',
getImageCommon = '/iot/cameraInfo/getImageCommon',
setImageCommon = '/iot/cameraInfo/setImageCommon',
getOsdCapability = '/iot/cameraInfo/getOsdCapability',
getOsd = '/iot/cameraInfo/getOsd',
setOsd = '/iot/cameraInfo/setOsd',
getTamperDet = '/iot/cameraInfo/getTamperDet',
setTamperDet = '/iot/cameraInfo/setTamperDet',
getTamperNotif = '/iot/cameraInfo/getTamperNotif',
setTamperNotif = '/iot/cameraInfo/setTamperNotif',
testAudio = '/iot/cameraInfo/testAudio',
getAlarmInfo = '/iot/cameraInfo/getAlarmInfo',
setAlarmInfo = '/iot/cameraInfo/setAlarmInfo',
getAlarmPlan = '/iot/cameraInfo/getAlarmPlan',
setAlarmPlan = '/iot/cameraInfo/setAlarmPlan',
getVideoParams = '/iot/cameraInfo/getVideoParams',
setVideoParams = '/iot/cameraInfo/setVideoParams',
configRecovery = '/iot/cameraInfo/configRecovery',
searchVideo = '/iot/cameraInfo/searchVideo',
getPlaybackUrlList = '/iot/cameraInfo/getPlaybackUrlList',
deletePlaybackChn = '/iot/cameraInfo/deletePlaybackChn',
getMultitransUrl = '/iot/cameraInfo/getMultitransUrl',
getRecordCfgs = '/iot/cameraInfo/getRecordCfgs',
setRecordCfgs = '/iot/cameraInfo/setRecordCfgs',
getBatchProgress = '/iot/cameraInfo/getBatchProgress',
uploadToServer = '/iot/cameraInfo/uploadToServer',
stopUploadToServer = '/iot/cameraInfo/stopUploadToServer',
getUploadToServerProcess = '/iot/cameraInfo/getUploadToServerProcess',
queryProjectTreeSync = '/iot/tplink/projectInfo/queryRegionTreeSync',
queryRegionTreeSync = '/iot/tplink/regionInfo/queryRegionTreeSync',
syncProject = '/iot/tplink/projectInfo/sync',
syncRegion = '/iot/tplink/regionInfo/sync',
list = '/iot/tplink/cameraInfo/list',
syncProjectIpcDevice = '/iot/tplink/cameraInfo/syncProjectIpcDevice',
ipcCapability = '/iot/tplink/cameraInfo/getIpcCapability',
nuList = '/iot/tplink/cameraInfo/nuList',
edit = '/iot/tplink/cameraInfo/edit',
rebootDevice = '/iot/tplink/cameraInfo/rebootDevice',
previewUrl = '/iot/tplink/cameraInfo/getPreviewUrl',
getImageCommon = '/iot/tplink/cameraInfo/getImageCommon',
setImageCommon = '/iot/tplink/cameraInfo/setImageCommon',
getOsdCapability = '/iot/tplink/cameraInfo/getOsdCapability',
getOsd = '/iot/tplink/cameraInfo/getOsd',
setOsd = '/iot/tplink/cameraInfo/setOsd',
getTamperDet = '/iot/tplink/cameraInfo/getTamperDet',
setTamperDet = '/iot/tplink/cameraInfo/setTamperDet',
getTamperNotif = '/iot/tplink/cameraInfo/getTamperNotif',
setTamperNotif = '/iot/tplink/cameraInfo/setTamperNotif',
testAudio = '/iot/tplink/cameraInfo/testAudio',
getAlarmInfo = '/iot/tplink/cameraInfo/getAlarmInfo',
setAlarmInfo = '/iot/tplink/cameraInfo/setAlarmInfo',
getAlarmPlan = '/iot/tplink/cameraInfo/getAlarmPlan',
setAlarmPlan = '/iot/tplink/cameraInfo/setAlarmPlan',
getVideoParams = '/iot/tplink/cameraInfo/getVideoParams',
setVideoParams = '/iot/tplink/cameraInfo/setVideoParams',
configRecovery = '/iot/tplink/cameraInfo/configRecovery',
searchVideo = '/iot/tplink/cameraInfo/searchVideo',
getPlaybackUrlList = '/iot/tplink/cameraInfo/getPlaybackUrlList',
deletePlaybackChn = '/iot/tplink/cameraInfo/deletePlaybackChn',
getMultitransUrl = '/iot/tplink/cameraInfo/getMultitransUrl',
getRecordCfgs = '/iot/tplink/cameraInfo/getRecordCfgs',
setRecordCfgs = '/iot/tplink/cameraInfo/setRecordCfgs',
getBatchProgress = '/iot/tplink/cameraInfo/getBatchProgress',
uploadToServer = '/iot/tplink/cameraInfo/uploadToServer',
stopUploadToServer = '/iot/tplink/cameraInfo/stopUploadToServer',
getUploadToServerProcess = '/iot/tplink/cameraInfo/getUploadToServerProcess',
motionCtrl = '/iot/tplink/cameraInfo/motionCtrl',
}
@ -72,6 +74,13 @@ export const syncRegion = (params?) => defHttp.get({ url: Api.syncRegion, params
*/
export const list = (params) => defHttp.get({ url: Api.list, params });
/**
* IPC设备
* @param params
*/
export const syncProjectIpcDevice = (params) => defHttp.get({ url: Api.syncProjectIpcDevice, params });
/**
* IPC能力集
* @param params
@ -266,3 +275,10 @@ export const stopUploadToServer = (params) => defHttp.get({ url: Api.stopUploadT
*/
export const getUploadToServerProcess = (params) => defHttp.get({ url: Api.getUploadToServerProcess, params });
/**
*
* @param params
*/
export const motionCtrl = (params) => defHttp.get({ url: Api.motionCtrl, params });

View File

@ -2,16 +2,16 @@ import { defHttp } from '/@/utils/http/axios';
import {Modal} from "ant-design-vue";
enum Api {
queryProjectTreeSync = '/iot/projectInfo/queryRegionTreeSync',
queryRegionTreeSync = '/iot/regionInfo/queryRegionTreeSync',
queryTreeList = '/iot/cameraInfo/queryTreeList',
getStorageDevice = '/iot/cameraInfo/getStorageDevice',
getAllRecordPlans = '/iot/cameraInfo/getAllRecordPlans',
getRecordCfgs = '/iot/cameraInfo/getRecordCfgs',
addRecordCfgs = '/iot/cameraInfo/addRecordCfgs',
setRecordCfgs = '/iot/cameraInfo/setRecordCfgs',
delRecordCfgs = '/iot/cameraInfo/delRecordCfgs',
getBatchProgress = '/iot/cameraInfo/getBatchProgress',
queryProjectTreeSync = '/iot/tplink/projectInfo/queryRegionTreeSync',
queryRegionTreeSync = '/iot/tplink/regionInfo/queryRegionTreeSync',
queryTreeList = '/iot/tplink/cameraInfo/queryTreeList',
getStorageDevice = '/iot/tplink/cameraInfo/getStorageDevice',
getAllRecordPlans = '/iot/tplink/cameraInfo/getAllRecordPlans',
getRecordCfgs = '/iot/tplink/cameraInfo/getRecordCfgs',
addRecordCfgs = '/iot/tplink/cameraInfo/addRecordCfgs',
setRecordCfgs = '/iot/tplink/cameraInfo/setRecordCfgs',
delRecordCfgs = '/iot/tplink/cameraInfo/delRecordCfgs',
getBatchProgress = '/iot/tplink/cameraInfo/getBatchProgress',
}
/**

View File

@ -1,11 +1,11 @@
import { defHttp } from '/@/utils/http/axios';
enum Api {
list = '/iot/projectInfo/list',
sync = '/iot/projectInfo/sync',
add = '/iot/projectInfo/add',
edit = '/iot/projectInfo/edit',
delete = '/iot/projectInfo/delete',
list = '/iot/tplink/projectInfo/list',
sync = '/iot/tplink/projectInfo/sync',
add = '/iot/tplink/projectInfo/add',
edit = '/iot/tplink/projectInfo/edit',
delete = '/iot/tplink/projectInfo/delete',
}
/**

View File

@ -1,16 +1,16 @@
import { defHttp } from '/@/utils/http/axios';
enum Api {
queryProjectTreeSync = '/iot/projectInfo/queryRegionTreeSync',
queryRegionTreeSync = '/iot/regionInfo/queryRegionTreeSync',
syncProject = '/iot/projectInfo/sync',
syncRegion = '/iot/regionInfo/sync',
syncRegionChildren = '/iot/regionInfo/syncChildren',
list = '/iot/regionInfo/list',
sync = '/iot/regionInfo/sync',
add = '/iot/regionInfo/add',
edit = '/iot/regionInfo/edit',
delete = '/iot/regionInfo/delete',
queryProjectTreeSync = '/iot/tplink/projectInfo/queryRegionTreeSync',
queryRegionTreeSync = '/iot/tplink/regionInfo/queryRegionTreeSync',
syncProject = '/iot/tplink/projectInfo/sync',
syncRegion = '/iot/tplink/regionInfo/sync',
syncRegionChildren = '/iot/tplink/regionInfo/syncChildren',
list = '/iot/tplink/regionInfo/list',
sync = '/iot/tplink/regionInfo/sync',
add = '/iot/tplink/regionInfo/add',
edit = '/iot/tplink/regionInfo/edit',
delete = '/iot/tplink/regionInfo/delete',
queryChildrenByParentId = '/sys/sysDepart/queryChildrenByParentId',
}