'use strict'; const model = require('../../controllers/resourceConsumption/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['POST/resource/approve'] = { content: '消费审批', visible: true }; router.post('/resource/approve', model.postApprove(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/resource/approve'] = { content: '获取消费审批列表', visible: true }; router.get('/resource/approve', model.getApproveList(opts)); };