nursing_unit_vue/src/views/iot/tplink/camera/camera.api.ts

283 lines
7.8 KiB
TypeScript
Raw Normal View History

2025-03-21 10:15:35 +08:00
import { defHttp } from '/@/utils/http/axios';
enum Api {
2025-06-30 09:47:35 +08:00
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',
2025-06-30 14:23:13 +08:00
syncProjectIpcDevice = '/iot/tplink/cameraInfo/syncProjectIpcDevice',
2025-06-30 09:47:35 +08:00
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',
2025-06-30 14:23:13 +08:00
motionCtrl = '/iot/tplink/cameraInfo/motionCtrl',
2025-03-21 10:15:35 +08:00
}
/**
*
* @param params
*/
export const queryProjectTreeSync = (params?) => defHttp.get({ url: Api.queryProjectTreeSync, params });
/**
*
* @param params
*/
export const queryRegionTreeSync = (params?) => defHttp.get({ url: Api.queryRegionTreeSync, params });
/**
*
* @param params
*/
export const syncProject = (params?) => defHttp.get({ url: Api.syncProject, params });
/**
*
* @param params
*/
export const syncRegion = (params?) => defHttp.get({ url: Api.syncRegion, params });
/**
*
* @param params
*/
export const list = (params) => defHttp.get({ url: Api.list, params });
2025-06-30 14:23:13 +08:00
/**
* IPC设备
* @param params
*/
export const syncProjectIpcDevice = (params) => defHttp.get({ url: Api.syncProjectIpcDevice, params });
2025-03-21 10:15:35 +08:00
/**
* IPC能力集
* @param params
*/
export const getIpcCapability = (params) => defHttp.get({ url: Api.ipcCapability, params });
/**
* url
* @param params
*/
export const getPreviewUrl = (params) => defHttp.get({ url: Api.previewUrl, params });
/**
*
* @param params
*/
export const nuList = (params) => defHttp.get({ url: Api.nuList, params });
/**
*
* @param params
*/
export const update = (params) => {
return defHttp.post({ url: Api.edit, params });
}
/**
*
* @param params
*/
export const rebootDevice = (params) => {
return defHttp.post({ url: Api.rebootDevice, params });
}
/**
*
* @param params
*/
export const getImageCommon = (params) => defHttp.post({ url: Api.getImageCommon, params });
/**
*
* @param params
*/
export const setImageCommon = (params) => defHttp.post({ url: Api.setImageCommon, params });
/**
* OSD能力集参数
* @param params
*/
export const getOsdCapability = (params) => defHttp.post({ url: Api.getOsdCapability, params });
/**
* OSD参数
* @param params
*/
export const getOsd = (params) => defHttp.post({ url: Api.getOsd, params });
/**
* OSD参数
* @param params
*/
export const setOsd = (params) => defHttp.post({ url: Api.setOsd, params });
/**
*
* @param params
*/
export const getTamperDet = (params) => defHttp.post({ url: Api.getTamperDet, params });
/**
*
* @param params
*/
export const setTamperDet = (params) => defHttp.post({ url: Api.setTamperDet, params });
/**
*
* @param params
*/
export const getTamperNotif = (params) => defHttp.post({ url: Api.getTamperNotif, params });
/**
*
* @param params
*/
export const setTamperNotif = (params) => defHttp.post({ url: Api.setTamperNotif, params });
/**
*
* @param params
*/
export const testAudio = (params) => defHttp.post({ url: Api.testAudio, params });
/**
* /
* @param params
*/
export const getAlarmInfo = (params) => defHttp.post({ url: Api.getAlarmInfo, params });
/**
* /
* @param params
*/
export const setAlarmInfo = (params) => defHttp.post({ url: Api.setAlarmInfo, params });
/**
* /
* @param params
*/
export const getAlarmPlan = (params) => defHttp.post({ url: Api.getAlarmPlan, params });
/**
* /
* @param params
*/
export const setAlarmPlan = (params) => defHttp.post({ url: Api.setAlarmPlan, params });
/**
*
* @param params
*/
export const getVideoParams = (params) => defHttp.post({ url: Api.getVideoParams, params });
/**
*
* @param params
*/
export const setVideoParams = (params) => defHttp.post({ url: Api.setVideoParams, params });
/**
*
* @param params
*/
export const configRecovery = (params) => defHttp.post({ url: Api.configRecovery, params });
/**
*
* @param params
*/
export const searchVideo = (params) => defHttp.get({ url: Api.searchVideo, params });
/**
* url
* @param params
*/
export const getPlaybackUrlList = (params) => defHttp.get({ url: Api.getPlaybackUrlList, params });
/**
* url
* @param params
*/
export const deletePlaybackChn = (params) => defHttp.get({ url: Api.deletePlaybackChn, params });
/**
* --Multitrans能力
* @param params
*/
export const getMultitransUrl = (params) => defHttp.get({ url: Api.getMultitransUrl, params });
/**
* --
* @param params
*/
export const getRecordCfgs = (params) => defHttp.get({ url: Api.getRecordCfgs, params });
/**
* --
* @param params
*/
export const setRecordCfgs = (params) => defHttp.get({ url: Api.setRecordCfgs, params });
/**
* --
* @param params
*/
export const getBatchProgress = (params) => defHttp.get({ url: Api.getBatchProgress, params });
/**
*
* @param params
*/
export const uploadToServer = (params) => defHttp.get({ url: Api.uploadToServer, params });
/**
*
* @param params
*/
export const stopUploadToServer = (params) => defHttp.get({ url: Api.stopUploadToServer, params });
/**
*
* @param params
*/
export const getUploadToServerProcess = (params) => defHttp.get({ url: Api.getUploadToServerProcess, params });
2025-06-30 14:23:13 +08:00
/**
*
* @param params
*/
export const motionCtrl = (params) => defHttp.get({ url: Api.motionCtrl, params });