283 lines
7.8 KiB
TypeScript
283 lines
7.8 KiB
TypeScript
import { defHttp } from '/@/utils/http/axios';
|
|
|
|
enum Api {
|
|
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',
|
|
|
|
}
|
|
|
|
/**
|
|
* 获取项目树列表
|
|
* @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 });
|
|
|
|
/**
|
|
* 同步此项目下的IPC设备
|
|
* @param params
|
|
*/
|
|
export const syncProjectIpcDevice = (params) => defHttp.get({ url: Api.syncProjectIpcDevice, params });
|
|
|
|
/**
|
|
* 获取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 });
|
|
|
|
/**
|
|
* 控制球机转动
|
|
* @param params
|
|
*/
|
|
export const motionCtrl = (params) => defHttp.get({ url: Api.motionCtrl, params });
|
|
|