for merger
This commit is contained in:
1 parent
8dc61d7786
commit
9930a16f5c
19 files changed
+300
-287
No files matched your search
@@ -10,7 +10,9 @@ export interface AuthUserRole {
|
||||
id: number;
|
||||
code: string;
|
||||
name: string;
|
||||
guardName?: string;
|
||||
/** Scope determines data access level: own | branch | all */
|
||||
scope: "own" | "branch" | "all";
|
||||
isSuper: boolean;
|
||||
}
|
||||
|
||||
export interface AuthUserBranch {
|
||||
@@ -19,25 +21,10 @@ export interface AuthUserBranch {
|
||||
name: LocalizedText;
|
||||
}
|
||||
|
||||
/** Permission entry from GET /profile — now just { code, name } */
|
||||
export interface AuthUserPermission {
|
||||
id: number;
|
||||
code?: string;
|
||||
name?: string;
|
||||
guardName?: string;
|
||||
module?: string;
|
||||
}
|
||||
|
||||
export interface AuthUserModulePermission {
|
||||
id: number;
|
||||
code?: string;
|
||||
name?: string;
|
||||
guardName?: string;
|
||||
module?: string;
|
||||
}
|
||||
|
||||
export interface AuthUserModule {
|
||||
module: string;
|
||||
permissions: AuthUserModulePermission[];
|
||||
code: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface AuthUser {
|
||||
@@ -51,7 +38,6 @@ export interface AuthUser {
|
||||
avatar?: string;
|
||||
branches?: AuthUserBranch[];
|
||||
permissions?: AuthUserPermission[];
|
||||
modules?: AuthUserModule[];
|
||||
createdAt?: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user