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.
23 lines
841 B
23 lines
841 B
'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));
|
|
|
|
|
|
};
|
|
|