'use strict'; /**培训资料库 */ const resourceRepository = require('../../controllers/resourceRepository'); module.exports = function (app, router, opts) { app.fs.api.logAttr['GET/train/trainFiles/resourceRepository/classify'] = { content: '查询培训资源储备库分类目录', visible: false }; router.get('/train/trainFiles/resourceRepository/classify', resourceRepository.getResourceClassify); app.fs.api.logAttr['GET/train/trainFiles/resourceRepository/fileList'] = { content: '查询培训资源储备库文件列表', visible: false }; router.get('/train/trainFiles/resourceRepository/fileList', resourceRepository.getResourceFileList); app.fs.api.logAttr['POST/train/trainFiles/resourceRepository/classify'] = { content: '新增培训资源储备库文件夹', visible: true }; router.post('/train/trainFiles/resourceRepository/classify', resourceRepository.postResourceClassify); app.fs.api.logAttr['PUT/train/trainFiles/resourceRepository/classify'] = { content: '编辑培训资源储备库文件夹', visible: true }; router.put('/train/trainFiles/resourceRepository/classify', resourceRepository.putResourceClassify); app.fs.api.logAttr['DELETE/train/trainFiles/resourceRepository/classify'] = { content: '删除培训资源储备库文件夹', visible: true }; router.delete('/train/trainFiles/resourceRepository/classify', resourceRepository.delResourceClassify); app.fs.api.logAttr['POST/train/trainFiles/resourceRepository/file'] = { content: '新增公司培训资料文件', visible: true }; router.post('/train/trainFiles/resourceRepository/file', resourceRepository.postResourceFile); app.fs.api.logAttr['DELETE/train/trainFiles/resourceRepository/file/:id'] = { content: '删除公司培训资料文件', visible: true }; router.delete('/train/trainFiles/resourceRepository/file/:id', resourceRepository.delResourceFile); };