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.

31 lines
1.4 KiB

2 years ago
'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/organization/dept/:id'] = { content: '删除部门', visible: true };
// router.del('/organization/dept/:id', checkItems.delDept);
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);
};