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.
28 lines
932 B
28 lines
932 B
2 years ago
|
'use strict';
|
||
|
|
||
|
const Authority = require('../../controllers/organization/authority');
|
||
|
|
||
|
module.exports = function (app, router, opts) {
|
||
|
/**
|
||
|
* @api {GET} resource 查询所有权限码.
|
||
|
* @apiVersion 1.0.0
|
||
|
* @apiGroup Org
|
||
|
*/
|
||
|
app.fs.api.logAttr['GET/resource'] = { content: '查询所有权限码', visible: true };
|
||
|
router.get('resource', Authority.getResource);
|
||
|
/**
|
||
|
* @api {GET} user/resource 查询用户权限.
|
||
|
* @apiVersion 1.0.0
|
||
|
* @apiGroup Org
|
||
|
*/
|
||
|
app.fs.api.logAttr['GET/user/resource'] = { content: '查询用户权限', visible: true };
|
||
|
router.get('user/resource', Authority.getUserResource);
|
||
|
|
||
|
/**
|
||
|
* @api {POST} user/resource 更新用户权限.
|
||
|
* @apiVersion 1.0.0
|
||
|
* @apiGroup Org
|
||
|
*/
|
||
|
app.fs.api.logAttr['POST/user/resource'] = { content: '更新用户权限', visible: true };
|
||
|
router.post('user/resource', Authority.updateUserRes);
|
||
|
};
|