25 lines
585 B
TypeScript
25 lines
585 B
TypeScript
export type ModuleCode = "CORE" | "GAO";
|
|
|
|
export interface Permission {
|
|
id: string;
|
|
moduleCode: ModuleCode;
|
|
code: string;
|
|
nameLangId?: string;
|
|
name?: string;
|
|
description?: string;
|
|
builtin?: boolean;
|
|
protectedPermission?: boolean;
|
|
ownerType?: AuthOwnerType;
|
|
ownerId?: string;
|
|
createdBy?: string;
|
|
createdAt?: number;
|
|
updatedAt?: number;
|
|
deletedAt?: number;
|
|
}
|
|
|
|
export type AuthOwnerType = "SYSTEM" | "MODULE" | "TENANT" | "STORE" | "USER";
|
|
|
|
export type PermissionPayload = Pick<Permission, "moduleCode" | "code" | "nameLangId" | "name" | "description"> & {
|
|
id?: string;
|
|
};
|