政务数据资源中心(Government data Resource center) 03专项3期主要建设内容
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.

37 lines
1.5 KiB

'use strict';
const fire = require('../../controllers/superScreen/fire');
module.exports = function (app, router, opts, AuthCode) {
//查询消防告警
app.fs.api.logAttr['GET/fire/alarm'] = { content: '查询消防告警', visible: true };
router.get('/fire/alarm', fire.getFireAlarmList(opts));
//新增消防告警
app.fs.api.logAttr['POST/fire/alarm'] = { content: '新增消防告警', visible: true };
router.post('/fire/alarm', fire.addAlarm(opts));
//修改消防告警状态
app.fs.api.logAttr['PUT/fire/alarm/:id'] = { content: '修改消防告警状态', visible: true };
router.put('/fire/alarm/:id', fire.updateAlarm(opts));
app.fs.api.logAttr['GET/videoCenter/list'] = { content: '获取萤石设备列表', visible: true };
router.get('/videoCenter/list', fire.videoList(opts));
app.fs.api.logAttr['GET/trafficindex/city/detailst'] = { content: '获取南昌市道路数据', visible: true };
router.get('/trafficindex/city/details', fire.getDetails(opts));
1 year ago
app.fs.api.logAttr['GET/traffic/v1/around'] = { content: '获取周边路况数据失败', visible: true };
router.get('/traffic/v1/around', fire.getSurroundingConditions(opts));
//获取消防设备
app.fs.api.logAttr['GET/fire/device'] = { content: '获取消防设备', visible: true };
router.get('/fire/device', fire.getFireDevice(opts));
//获取火情趋势
app.fs.api.logAttr['GET/fire/trend'] = { content: '获取火情趋势', visible: true };
router.get('/fire/trend', fire.getFireTrend(opts));
1 year ago
};