mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-24 13:53:50 +00:00
tmp org api rewrite (#4304)
* sync collection * remove lock * tmp org api rewrite
This commit is contained in:
13
packages/global/support/user/team/org/type.d.ts
vendored
13
packages/global/support/user/team/org/type.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
import type { TeamPermission } from 'support/permission/user/controller';
|
||||
import type { TeamPermission } from '../../../permission/user/controller';
|
||||
import { ResourcePermissionType } from '../type';
|
||||
import { SourceMemberType } from 'support/user/type';
|
||||
import { SourceMemberType } from '../../type';
|
||||
|
||||
type OrgSchemaType = {
|
||||
_id: string;
|
||||
@@ -8,7 +8,7 @@ type OrgSchemaType = {
|
||||
pathId: string;
|
||||
path: string;
|
||||
name: string;
|
||||
avatar?: string;
|
||||
avatar: string;
|
||||
description?: string;
|
||||
updateTime: Date;
|
||||
};
|
||||
@@ -20,7 +20,12 @@ type OrgMemberSchemaType = {
|
||||
tmbId: string;
|
||||
};
|
||||
|
||||
type OrgType = Omit<OrgSchemaType, 'avatar'> & {
|
||||
export type OrgListItemType = OrgSchemaType & {
|
||||
permission: TeamPermission;
|
||||
total: number; // members + children orgs
|
||||
};
|
||||
|
||||
export type OrgType = Omit<OrgSchemaType, 'avatar'> & {
|
||||
avatar: string;
|
||||
permission: TeamPermission;
|
||||
members: OrgMemberSchemaType[];
|
||||
|
Reference in New Issue
Block a user