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.
|
|
|
'use strict';
|
|
|
|
const organization = require('../../controllers/organization');
|
|
|
|
|
|
|
|
module.exports = function (app, router, opts) {
|
|
|
|
app.fs.api.logAttr['GET/organization/deps'] = { content: '获取全部部门及其下用户', visible: true };
|
|
|
|
router.get('/organization/deps', organization.allDeps);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['POST/organization/user'] = { content: '编辑成员', visible: true };
|
|
|
|
router.post('/organization/user', organization.editUser);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['PUT/organization/user/:pomsUserId'] = { content: '修改成员状态', visible: true };
|
|
|
|
router.put('/organization/user/:pomsUserId', organization.putUser);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['DEL/organization/admin/:pomsUserId'] = { content: '删除管理员', visible: true };
|
|
|
|
router.delete('/organization/admin/:pomsUserId', organization.delAdmin);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['GET/organization/user'] = { content: '获取成员列表', visible: true };
|
|
|
|
router.get('/organization/user', organization.user);
|
|
|
|
};
|