'use strict'; const patrolTemplate = require('../../controllers/patrolManage/patrolTemplate'); module.exports = function (app, router, opts) { app.fs.api.logAttr['GET/patrolTemplate'] = { content: '获取巡检模板', visible: false }; router.get('/patrolTemplate', patrolTemplate.getPatrolTemplate); app.fs.api.logAttr['POST/patrolTemplate'] = { content: '新增巡检模板', visible: true }; router.post('/patrolTemplate', patrolTemplate.createPatrolTemplate); app.fs.api.logAttr['PUT/patrolTemplate'] = { content: '修改巡检模板', visible: true }; router.put('/patrolTemplate', patrolTemplate.updatePatrolTemplate); app.fs.api.logAttr['DELETE/patrolTemplate/:id'] = { content: '删除巡检模板', visible: true }; router.del('/patrolTemplate/:id', patrolTemplate.delPatrolTemplate); };