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