'use strict'; const role = require('../../controllers/role'); module.exports = function (app, router, opts) { app.fs.api.logAttr['GET/role/list'] = { content: '查询角色列表', visible: true }; router.get('/role/list', role.get); app.fs.api.logAttr['POST/role/add'] = { content: '添加角色', visible: true }; router.post('/role/add', role.add); app.fs.api.logAttr['PUT/role/edit'] = { content: '编辑角色', visible: true }; router.put('/role/edit', role.edit); app.fs.api.logAttr['DEL/role/del'] = { content: '删除角色', visible: true }; router.del('/role/del', role.del); };