- 添加 mock 数据

This commit is contained in:
sin
2019-03-05 21:35:29 +08:00
parent a9168ec6ac
commit 10a1f83c8e
2 changed files with 69 additions and 0 deletions

View File

@@ -1,6 +1,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';
/* eslint-disable */
function getAdminMenu(req, res) {
@@ -15,7 +16,12 @@ function getAdminUrls(req, res) {
return res.json(adminUrls);
}
function getResourceTree(req, res) {
return res.json(resourceTree);
}
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,
};