'use strict'; const departmentTrain = require('../../controllers/departmentTrain'); module.exports = function (app, router, opts) { app.fs.api.logAttr['GET/department/train/record/list'] = { content: '查询部门培训记录列表', visible: true }; router.get('/department/train/record/list', departmentTrain.get); app.fs.api.logAttr['POST/department/train/record/bulk'] = { content: '导入部门培训记录信息', visible: true }; router.post('/department/train/record/bulk', departmentTrain.importData); app.fs.api.logAttr['PUT/department/train/record/modify'] = { content: '编辑部门培训记录信息', visible: true }; router.put('/department/train/record/modify', departmentTrain.modify); };