mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-22 20:37:48 +00:00

* feat: change group owner api * pref: member/org/group * fix: member modal select clb * fix: search member when change owner
34 lines
673 B
TypeScript
34 lines
673 B
TypeScript
// orgId, pathid, path === null ===> root org
|
|
export type postCreateOrgData = {
|
|
name: string;
|
|
description?: string;
|
|
avatar?: string;
|
|
path?: string;
|
|
};
|
|
|
|
export type putUpdateOrgMembersData = {
|
|
orgId?: string;
|
|
members: {
|
|
tmbId: string;
|
|
// role: `${OrgMemberRole}`;
|
|
}[];
|
|
};
|
|
|
|
export type putUpdateOrgData = {
|
|
orgId: string; // can not be undefined because can not uppdate root org
|
|
name?: string;
|
|
avatar?: string;
|
|
description?: string;
|
|
};
|
|
|
|
export type putMoveOrgType = {
|
|
orgId: string;
|
|
targetOrgId?: string; // '' ===> move to root org
|
|
};
|
|
|
|
// type putChnageOrgOwnerData = {
|
|
// orgId: string;
|
|
// tmbId: string;
|
|
// toAdmin?: boolean;
|
|
// };
|