refactor: team permission manager (#3535)

* perf: classify org, group and member

* refactor: team per manager

* fix: missing functions
This commit is contained in:
a.e.
2025-01-07 09:19:23 +08:00
committed by GitHub
parent 2066094047
commit 07cc849877
10 changed files with 892 additions and 571 deletions

View File

@@ -33,3 +33,27 @@ export type UpdatePermissionBody = {
groupId: string;
orgId: string;
}>;
export type CreatePermissionBody = {
tmbId: string[];
groupId: string[];
orgId: string[];
};
export type DeletePermissionQuery = RequireOnlyOne<{
tmbId?: string;
groupId?: string;
orgId?: string;
}>;
export type TeamClbsListType = {
permission: number;
name: string;
avatar: string;
};
export type ListPermissionResponse = {
tmb: (TeamClbsListType & { tmbId: string })[];
group: (TeamClbsListType & { groupId: string })[];
org: (TeamClbsListType & { orgId: string })[];
};