实现权限级菜单、localStorageSWR缓存
This commit is contained in:
3
tone-page-web/lib/types/role.ts
Normal file
3
tone-page-web/lib/types/role.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export enum Role {
|
||||
Admin = 'admin',
|
||||
}
|
||||
@@ -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[];
|
||||
}
|
||||
Reference in New Issue
Block a user