update api
This commit is contained in:
+5
-8
@@ -1,21 +1,19 @@
|
||||
import type { ModuleCode, Permission } from "./Permission";
|
||||
import { Model } from "./Model";
|
||||
|
||||
export interface Role {
|
||||
id: string;
|
||||
export type Role = {
|
||||
moduleCode: ModuleCode;
|
||||
code: string;
|
||||
nameLangId?: string;
|
||||
name?: string;
|
||||
description?: string;
|
||||
|
||||
permissionList?: Permission[];
|
||||
allPermissionList?: Permission[];
|
||||
childRoleList?: Role[];
|
||||
permissionIdList?: string[];
|
||||
childRoleIdList?: string[];
|
||||
createdAt?: number;
|
||||
updatedAt?: number;
|
||||
deletedAt?: number;
|
||||
}
|
||||
} & Model;
|
||||
|
||||
export type RolePayload = Pick<Role, "moduleCode" | "code" | "nameLangId" | "name" | "description"> & {
|
||||
id?: string;
|
||||
@@ -23,9 +21,8 @@ export type RolePayload = Pick<Role, "moduleCode" | "code" | "nameLangId" | "nam
|
||||
childRoleIdList?: string[];
|
||||
};
|
||||
|
||||
export interface UserRoleAuthorizeReq {
|
||||
export interface AuthorizeUserRole {
|
||||
userId: string;
|
||||
moduleCode?: ModuleCode;
|
||||
roleIdList?: string[];
|
||||
roleCodeList?: string[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user