实现权限级菜单、localStorageSWR缓存

This commit is contained in:
2025-06-19 09:03:52 +08:00
parent af0e9c6522
commit bd862e54fa
5 changed files with 115 additions and 80 deletions

View File

@@ -0,0 +1,3 @@
export enum Role {
Admin = 'admin',
}

View File

@@ -1,3 +1,5 @@
import { Role } from "./role";
export interface User {
userId: string;
username: string;
@@ -8,4 +10,5 @@ export interface User {
createdAt: string;
updatedAt: string;
deletedAt: string | null;
roles: Role[];
}