'use strict'; const member = require('../../controllers/member/index'); module.exports = function (app, router, opts, AuthCode) { app.fs.api.logAttr['POST/meta/member'] = { content: '增加用户', visible: true }; router.post('/meta/member', member.addUser(opts)) // 修改用户信息 app.fs.api.logAttr['PUT/meta/member/:id'] = { content: '修改用户信息', visible: true }; router.put('/meta/member/:id', member.editUser(opts)) // 删除用户信息 app.fs.api.logAttr['DEL/meta/member/:id'] = { content: '删除用户信息', visible: true }; router.del('/meta/member/:id', member.deleteUser(opts)) //获取用户信息列表 app.fs.api.logAttr['GET/meta/members'] = { content: '获取用户信息列表', visible: true }; router.get('/meta/members', member.getUserList(opts)); };