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.
12 lines
731 B
12 lines
731 B
2 years ago
|
'use strict';
|
||
2 years ago
|
const patrolRecord = require('../../controllers/patrolManage/patrolRecord');
|
||
2 years ago
|
|
||
|
module.exports = function (app, router, opts) {
|
||
2 years ago
|
app.fs.api.logAttr['GET/patrolRecord/:patrolPlanId/:startTime/:endTime/:alarm/:pointId'] = { content: '获取巡检记录', visible: true };
|
||
2 years ago
|
// web端、小程序端查数据:patrolPlanId为all,不需要传pointId
|
||
|
// 小程序端查点位最新一条数据:startTime、endTime、alarm不传
|
||
2 years ago
|
router.get('/patrolRecord/:patrolPlanId/:startTime/:endTime/:alarm/:pointId', patrolRecord.findPatrolRecord);
|
||
2 years ago
|
|
||
|
app.fs.api.logAttr['POST/patrolRecord/add'] = { content: '新增巡检记录', visible: true }
|
||
|
router.post('/patrolRecord/add', patrolRecord.addPatrolRecord);
|
||
|
};
|