'use strict'; const model = require('../../controllers/modelManagement/index'); module.exports = function (app, router, opts, AuthCode) { app.fs.api.logAttr['POST/meta/model'] = { content: '增加模型信息', visible: true }; router.post('/meta/model', model.addModelManagement(opts)) // 修改模型信息 app.fs.api.logAttr['PUT/meta/model/:id'] = { content: '修改模型信息', visible: true }; router.put('/meta/model/:id', model.editModelManagement(opts)) // 删除模型信息 app.fs.api.logAttr['DEL/meta/model/:id'] = { content: '删除模型信息', visible: true }; router.del('/meta/model/:id', model.deleteModelManagement(opts)) //获取模型信息列表 app.fs.api.logAttr['GET/meta/models'] = { content: '获取模型信息列表', visible: true }; router.get('/meta/models', model.getModelManagementList(opts)); };