添加角色管理
This commit is contained in:
@@ -2,6 +2,7 @@ import adminMenu from './geographic/admin-menu.json';
|
||||
import adminMenuAll from './geographic/admin-menu-all.json';
|
||||
import adminUrls from './geographic/admin-urls';
|
||||
import resourceTree from './geographic/resource-tree.json';
|
||||
import roleQuery from './geographic/role-query.json';
|
||||
|
||||
/* eslint-disable */
|
||||
function getAdminMenu(req, res) {
|
||||
@@ -20,8 +21,13 @@ function getResourceTree(req, res) {
|
||||
return res.json(resourceTree);
|
||||
}
|
||||
|
||||
function getQueryRole(req, res) {
|
||||
return res.json(roleQuery);
|
||||
}
|
||||
|
||||
export default {
|
||||
'GET /admin-api/admin/resource/admin_menu_tree': getAdminMenuAll,
|
||||
'GET /admin-api/admin/resource/admin_url_list': getAdminUrls,
|
||||
'GET /admin-api/admin/resource/tree': getResourceTree,
|
||||
'GET /admin-api/admin/role/page': getQueryRole,
|
||||
};
|
||||
|
||||
19
admin-web/mock/geographic/role-query.json
Normal file
19
admin-web/mock/geographic/role-query.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"code": 0,
|
||||
"data": {
|
||||
"count": 2,
|
||||
"roles": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "系统管理员",
|
||||
"createTime": 1551332076000
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"name": "系统管理员",
|
||||
"createTime": 1551332076000
|
||||
}
|
||||
]
|
||||
},
|
||||
"message": "string"
|
||||
}
|
||||
Reference in New Issue
Block a user