mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-21 11:43:56 +00:00
pref: member list (#4344)
* chore: search member new api * chore: permission * fix: ts error * fix: member modal
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
// orgId, pathid, path === null ===> root org
|
||||
export type postCreateOrgData = {
|
||||
name: string;
|
||||
description?: string;
|
||||
avatar?: string;
|
||||
path?: string;
|
||||
orgId?: string;
|
||||
};
|
||||
|
||||
export type putUpdateOrgMembersData = {
|
||||
|
26
packages/global/support/user/team/type.d.ts
vendored
26
packages/global/support/user/team/type.d.ts
vendored
@@ -70,7 +70,13 @@ export type TeamTmbItemType = {
|
||||
permission: TeamPermission;
|
||||
} & ThirdPartyAccountType;
|
||||
|
||||
export type TeamMemberItemType = {
|
||||
export type TeamMemberItemType<
|
||||
Options extends {
|
||||
withPermission?: boolean;
|
||||
withOrgs?: boolean;
|
||||
withGroupRole?: boolean;
|
||||
} = { withPermission: true; withOrgs: true; withGroupRole: false }
|
||||
> = {
|
||||
userId: string;
|
||||
tmbId: string;
|
||||
teamId: string;
|
||||
@@ -78,12 +84,24 @@ export type TeamMemberItemType = {
|
||||
avatar: string;
|
||||
role: `${TeamMemberRoleEnum}`;
|
||||
status: `${TeamMemberStatusEnum}`;
|
||||
permission: TeamPermission;
|
||||
contact?: string;
|
||||
createTime: Date;
|
||||
updateTime?: Date;
|
||||
orgs?: string[]; // full path name, pattern: /teamName/orgname1/orgname2
|
||||
};
|
||||
} & (Options extends { withPermission: true }
|
||||
? {
|
||||
permission: TeamPermission;
|
||||
}
|
||||
: {}) &
|
||||
(Options extends { withOrgs: true }
|
||||
? {
|
||||
orgs?: string[]; // full path name, pattern: /teamName/orgname1/orgname2
|
||||
}
|
||||
: {}) &
|
||||
(Options extends { withGroupRole: true }
|
||||
? {
|
||||
groupRole?: `${GroupMemberRole}`;
|
||||
}
|
||||
: {});
|
||||
|
||||
export type TeamTagItemType = {
|
||||
label: string;
|
||||
|
Reference in New Issue
Block a user