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.
19 lines
675 B
19 lines
675 B
1 year ago
|
'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.addAlarm(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));
|
||
|
};
|