You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
94 lines
3.8 KiB
94 lines
3.8 KiB
"use strict";
|
|
import { ProxyRequest, customWebUtils } from "@peace/utils";
|
|
|
|
export const AuthRequest = new ProxyRequest("_auth");
|
|
export const AxyRequest = new ProxyRequest("_axy");
|
|
export const IotVideoServerRequest = new ProxyRequest("_vs");
|
|
export const YingshiRequest = new ProxyRequest("_yingshi");
|
|
|
|
export const webUtils = new customWebUtils({
|
|
userKey: 'vcmpUser'
|
|
});
|
|
const { basicAction, RouteRequest } = webUtils
|
|
export {
|
|
basicAction, RouteRequest
|
|
}
|
|
|
|
export const ApiTable = {
|
|
login: "login",
|
|
logout: "logout",
|
|
|
|
getEnterprisesMembers: "enterprises/{enterpriseId}/members",
|
|
|
|
getNvr: "nvr",
|
|
getVender: "vender",
|
|
nvr: "nvr",
|
|
delNvr: "nvr/{nvrId}",
|
|
getNvrDetails: "nvr/detail/{nvrId}", //获取nvr详情
|
|
getExport: "camera/export", //nvr表格数据导出
|
|
getCheck: "nvr/verify", //校验nvr信息
|
|
|
|
getCamera: "camera/project", // 获取摄像头列表
|
|
putForbidden: "camera/banned", //禁用摄像头
|
|
delCamera: "camera/{cameraId}", //删除摄像头
|
|
getCameraDetails: "camera/{cameraId}/detail", //获取摄像头详情
|
|
getCameraKind: "camera/kind", //获取摄像头种类列表
|
|
getAbility: "camera/ability", //获取摄像头能力列表
|
|
postCameraYingshi: "camera/create/yingshi", //创建萤石摄像头
|
|
postCameraIpc: "camera/create/ipc", //创建IPC摄像头
|
|
getVideoStreaming: "camera/nvr_stream", //获取NVR视频流
|
|
postCameraNvr: "camera/create/nvr", //记录NVR摄像头
|
|
getCascadeSIP: "camera/sip_list/cascade", //获取级联摄像头sip列表
|
|
postAddCascade: "camera/create/cascade", //添加级联摄像头
|
|
getParentCamera: "camera/cascade_device", //获取级联摄像头父级设备
|
|
postVerifyYingshi: "camera/verify/yingshi", //验证萤石摄像头信息
|
|
postVerifyIpc: "camera/verify/ipc", //验证IPC摄像头信息
|
|
postVerifyCascade: "camera/verify/cascade", //验证级联摄像头信息
|
|
getCascadeStream: "camera/cascade_stream", //获取级联视频流
|
|
uploadYingshiVoice: 'camera/yingshi_voice/upload', //上传萤石语音
|
|
postCameraRemark: 'camera/remark',//编辑摄像头备注
|
|
//获取状态码
|
|
getStatus: 'status',//获取状态码
|
|
putStatueBanned: 'status/banned',//禁用状态码自定义
|
|
postStatusResolve: 'status/resolve',//编辑解决方案
|
|
postStatusCustom: 'status/custom',//自定义状态码释义
|
|
getStatusSimpleAll: 'status/simple_all',//获取全部状态码简略信息
|
|
getCameraListAll: 'camera/listAll',//获取所有摄像头信息
|
|
getStatusPush: 'status/push',//获取推送配置
|
|
putSasdtatusPush: 'status/push',//编辑推送配置
|
|
delPush: 'status/push/{configId}',//删除推送配置
|
|
putPushBanned: 'status/push/banned',//禁用推送配置
|
|
getPushCopy: 'status/push/{configId}/copy',//复制推送配置
|
|
getPushLog: 'status/push/{configId}/log',//获取推送记录
|
|
getErrorCode: '/status/check', //查取指定状态码信息
|
|
|
|
|
|
|
|
//应用管理
|
|
getApplication: 'application', //获取应用信息
|
|
putApplication: 'application', //禁用应用
|
|
delApplication: 'application/{appId}', //删除应用
|
|
postApplication: 'application', //创建/修改应用
|
|
|
|
//镜像服务
|
|
getMirrorList: 'mirror/list', //获取镜像信息列表
|
|
delMirror: 'mirror/{mirrorId}', //删除镜像信息
|
|
putMirrorCopy: 'mirror/{mirrorId}/copy', //删除镜像信息
|
|
putMirrorPublish: 'mirror/{mirrorId}/publish', //发布镜像信息
|
|
getMirror: 'mirror/{mid}', //获取指定镜像信息
|
|
putMirror: 'mirror', //编辑镜像信息
|
|
getMirrorMid:'mirror/{mid}' , //获取指定镜像信息
|
|
|
|
|
|
};
|
|
|
|
export const VideoServeApi = {
|
|
invite: 'api/gb28181/invite',
|
|
control: 'api/gb28181/control'
|
|
}
|
|
|
|
export const RouteTable = {
|
|
apiRoot: "/api/root",
|
|
fileUpload: "/_upload/new",
|
|
cleanUpUploadTrash: "/_upload/cleanup",
|
|
};
|
|
|