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.
 
 
 
 

17 lines
760 B

'use strict';
const patrolPlan = require('../../controllers/patrolPlan/patrolPlan');
module.exports = function (app, router, opts) {
app.fs.api.logAttr['GET/patrolPlan'] = { content: '获取巡检计划', visible: false };
router.get('/patrolPlan', patrolPlan.getPatrolPlan);
app.fs.api.logAttr['POST/patrolPlan'] = { content: '新增巡检计划', visible: true };
router.post('/patrolPlan', patrolPlan.createPatrolPlan);
app.fs.api.logAttr['PUT/patrolPlan'] = { content: '修改巡检计划', visible: true };
router.put('/patrolPlan', patrolPlan.updatePatrolPlan);
app.fs.api.logAttr['DELETE/patrolPlan/:id'] = { content: '删除巡检计划', visible: true };
router.del('/patrolPlan/:id', patrolPlan.delPatrolPlan);
};