feat: 架构调整

This commit is contained in:
2026-07-23 11:27:33 +08:00
parent 6f37264047
commit 3b5a908ee4
25 changed files with 653 additions and 245 deletions
+16
View File
@@ -0,0 +1,16 @@
import { get } from '@/utils/request';
import type { MenuNode, PermissionCode } from '@/types';
/**
* 获取当前用户的菜单树(后端下发)
*/
export function fetchMenuTree(): Promise<MenuNode[]> {
return get('/menu/tree');
}
/**
* 获取当前用户的权限编码列表
*/
export function fetchPermissions(): Promise<PermissionCode[]> {
return get('/permission/list');
}