添加动态权限控制

This commit is contained in:
xie7654
2025-07-02 21:54:13 +08:00
parent eace8a524d
commit 78b9f9e832
12 changed files with 186 additions and 24 deletions

View File

@@ -15,7 +15,8 @@ interface UserInfo extends BasicUserInfo {
* accessToken
*/
token: string;
roles: [];
roles?: string[];
permissions?: string[];
}
export type { UserInfo };