'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); };