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.
17 lines
612 B
17 lines
612 B
'use strict';
|
|
|
|
const userRole = require('../../controllers/userRole');
|
|
|
|
module.exports = function (app, router, opts) {
|
|
|
|
app.fs.api.logAttr['GET/roleUser/list'] = { content: '角色用户列表', visible: true };
|
|
router.get('/roleUser/list', userRole.get);
|
|
|
|
app.fs.api.logAttr['POST/roleUser/add'] = { content: '角色添加用户成功', visible: true };
|
|
router.post('/roleUser/add', userRole.add);
|
|
|
|
app.fs.api.logAttr['GET/user/:userId/role/resources'] = { content: '获取用户角色资源', visible: true };
|
|
router.get('/user/:userId/role/resources', userRole.getUserResources);
|
|
|
|
|
|
};
|