'use strict'; const checkItems = require('../../controllers/patrolManage/checkItems'); module.exports = function (app, router, opts) { app.fs.api.logAttr['GET/checkItems/group'] = { content: '获取分组信息', visible: false }; router.get('/checkItems/group', checkItems.getGroup); app.fs.api.logAttr['POST/checkItems/group'] = { content: '新增分组', visible: false }; router.post('/checkItems/group', checkItems.createGroup); // app.fs.api.logAttr['PUT/organization/dept/:id/modify'] = { content: '修改部门', visible: true }; // router.put('/organization/dept/:id/modify', checkItems.updateDept); app.fs.api.logAttr['DELETE/checkItems/group/:id'] = { content: '删除分组', visible: true }; router.del('/checkItems/group/:id', checkItems.delGroup); app.fs.api.logAttr['GET/checkItems'] = { content: '获取检查项', visible: false }; router.get('/checkItems', checkItems.getCheckItems); app.fs.api.logAttr['POST/checkItems'] = { content: '新增检查项', visible: false }; router.post('/checkItems', checkItems.createCheckItems); app.fs.api.logAttr['PUT/checkItems/:id'] = { content: '修改检查项', visible: false }; router.put('/checkItems/:id', checkItems.updateCheckItems); app.fs.api.logAttr['DEL/checkItems/:ids'] = { content: '删除检查项', visible: false }; router.del('/checkItems/:ids', checkItems.deleteCheckItems); };