'use strict'; const user = require('../../controllers/organization/user'); module.exports = function (app, router, opts) { app.fs.api.logAttr['GET/organization/user'] = { content: '获取用户信息', visible: false }; router.get('/organization/user', user.getUser); app.fs.api.logAttr['POST/organization/user'] = { content: '创建用户信息', visible: false }; router.post('/organization/user', user.creatUser); app.fs.api.logAttr['PUT/organization/user/:id'] = { content: '修改用户信息', visible: false }; router.put('/organization/user/:id', user.updateUser); app.fs.api.logAttr['DEL/organization/user/:ids'] = { content: '删除用户信息', visible: false }; router.del('/organization/user/:ids', user.deleteUser); app.fs.api.logAttr['PUT/organization/user/resetPwd/:id'] = { content: '重置用户密码', visible: false }; router.put('/organization/user/resetPwd/:id', user.resetPwd); };