|
|
|
'use strict';
|
|
|
|
|
|
|
|
const camera = require('../../controllers/camera');
|
|
|
|
const cameraCreate = require('../../controllers/camera/create')
|
|
|
|
|
|
|
|
module.exports = function (app, router, opts) {
|
|
|
|
|
|
|
|
// 摄像头创建
|
|
|
|
app.fs.api.logAttr['POST/camera/verify/yingshi'] = { content: '验证萤石摄像头信息', visible: false };
|
|
|
|
router.post('/camera/verify/yingshi', cameraCreate.verifyYingshi);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['POST/camera/create/yingshi'] = { content: '创建萤石摄像头', visible: false };
|
|
|
|
router.post('/camera/create/yingshi', cameraCreate.createYingshi);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['GET/camera/nvr_stream'] = { content: '获取NVR视频流', visible: false };
|
|
|
|
router.get('/camera/nvr_stream', cameraCreate.getNvrSteam);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['GET/nvr/:nvrId/nvr_stream'] = { content: '以 nvrId 获取NVR视频流', visible: false };
|
|
|
|
router.get('/nvr/:nvrId/nvr_stream', cameraCreate.getNvrSteamById);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['POST/camera/create/nvr'] = { content: '记录NVR摄像头', visible: false };
|
|
|
|
router.post('/camera/create/nvr', cameraCreate.createNvrCamera);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['POST/camera/verify/ipc'] = { content: '验证IPC摄像头信息', visible: false };
|
|
|
|
router.post('/camera/verify/ipc', cameraCreate.verifyIpcCamera);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['POST/camera/create/ipc'] = { content: '创建IPC摄像头', visible: false };
|
|
|
|
router.post('/camera/create/ipc', cameraCreate.createIpcCamera);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['GET/camera/sip_list/cascade'] = { content: '获取级联摄像头sip列表', visible: false };
|
|
|
|
router.get('/camera/sip_list/cascade', cameraCreate.getCascadeSipList);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['POST/camera/verify/cascade'] = { content: '验证级联摄像头信息', visible: false };
|
|
|
|
router.post('/camera/verify/cascade', cameraCreate.verifyCascadeCamera);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['POST/camera/create/cascade'] = { content: '添加级联摄像头', visible: false };
|
|
|
|
router.post('/camera/create/cascade', cameraCreate.createCascadeCamera);
|
|
|
|
|
|
|
|
// 摄像头创建 END
|
|
|
|
|
|
|
|
app.fs.api.logAttr['GET/camera/project'] = { content: '获取摄像头列表及项目绑定信息', visible: false };
|
|
|
|
router.get('/camera/project', camera.getCameraProject);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['GET/camera'] = { content: '获取摄像头信息', visible: false };
|
|
|
|
router.get('/camera', camera.getCamera);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['GET/camera/:cameraId/detail'] = { content: '获取摄像头详情', visible: false };
|
|
|
|
router.get('/camera/:cameraId/detail', camera.detail);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['GET/camera/listAll'] = { content: '获取摄像头详情', visible: false };
|
|
|
|
router.get('/camera/listAll', camera.getCameraListAll);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['PUT/camera/banned'] = { content: '禁用摄像头', visible: false };
|
|
|
|
router.put('/camera/banned', camera.banned);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['DEL/camera/:cameraId'] = { content: '删除摄像头', visible: false };
|
|
|
|
router.delete('/camera/:cameraId', camera.del);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['GET/camera/export'] = { content: '导出摄像头信息', visible: false };
|
|
|
|
router.get('/camera/export', camera.cameraExport);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['GET/camera/ability'] = { content: '获取摄像头能力列表', visible: false };
|
|
|
|
router.get('/camera/ability', camera.getAbility);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['GET/camera/kind'] = { content: '获取摄像头种类列表', visible: false };
|
|
|
|
router.get('/camera/kind', camera.getKind);
|
|
|
|
};
|