政务数据资源中心(Government data Resource center) 03专项3期主要建设内容
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.

24 lines
887 B

'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));
};