2019-03-06 22:02:59 +08:00
|
|
|
/* eslint-disable */
|
2019-03-01 18:15:12 +08:00
|
|
|
import adminMenu from './geographic/admin-menu.json';
|
|
|
|
import adminMenuAll from './geographic/admin-menu-all.json';
|
|
|
|
import adminUrls from './geographic/admin-urls';
|
2019-03-05 21:35:29 +08:00
|
|
|
import resourceTree from './geographic/resource-tree.json';
|
2019-03-06 20:08:39 +08:00
|
|
|
import roleQuery from './geographic/role-query.json';
|
2019-03-01 18:15:12 +08:00
|
|
|
|
|
|
|
function getAdminMenu(req, res) {
|
|
|
|
return res.json(adminMenu);
|
|
|
|
}
|
|
|
|
|
|
|
|
function getAdminMenuAll(req, res) {
|
|
|
|
return res.json(adminMenuAll);
|
|
|
|
}
|
|
|
|
|
|
|
|
function getAdminUrls(req, res) {
|
|
|
|
return res.json(adminUrls);
|
|
|
|
}
|
|
|
|
|
2019-03-05 21:35:29 +08:00
|
|
|
function getResourceTree(req, res) {
|
|
|
|
return res.json(resourceTree);
|
|
|
|
}
|
|
|
|
|
2019-03-06 20:08:39 +08:00
|
|
|
function getQueryRole(req, res) {
|
|
|
|
return res.json(roleQuery);
|
|
|
|
}
|
|
|
|
|
2019-03-01 18:15:12 +08:00
|
|
|
export default {
|
2019-03-06 22:02:59 +08:00
|
|
|
'GET /admin-api/admins/resource/admin_menu_tree': getAdminMenuAll,
|
|
|
|
'GET /admin-api/admins/resource/admin_url_list': getAdminUrls,
|
|
|
|
'GET /admin-api/admins/resource/tree': getResourceTree,
|
|
|
|
'GET /admin-api/admins/role/page': getQueryRole,
|
2019-03-01 18:15:12 +08:00
|
|
|
};
|