refactor: org pathId (#3516)

This commit is contained in:
a.e.
2025-01-03 09:53:53 +08:00
committed by archer
parent d24d29ac48
commit a401d4d612
6 changed files with 33 additions and 14 deletions

View File

@@ -1,6 +1,10 @@
import { OrgSchemaType } from './type';
export const OrgCollectionName = 'team_orgs';
export const OrgMemberCollectionName = 'team_org_members';
export const getChildrenPath = (org: OrgSchemaType) => `${org.path}/${org.pathId}`;
// export enum OrgMemberRole {
// owner = 'owner',
// admin = 'admin',

View File

@@ -4,6 +4,7 @@ import { ResourcePermissionType } from '../type';
type OrgSchemaType = {
_id: string;
teamId: string;
pathId: string;
path: string;
name: string;
avatar?: string;