Sfoglia il codice sorgente

feat(types): 分享相关

vian 4 anni fa
parent
commit
62e1c00d31
1 ha cambiato i file con 8 aggiunte e 2 eliminazioni
  1. 8 2
      types/src/interface/share.ts

+ 8 - 2
types/src/interface/share.ts

@@ -1,4 +1,4 @@
-import { IUser } from './user';
+import { IRecentUser, IUser } from './user';
 
 export enum ShareType {
   PROJECT = 1, // 项目
@@ -43,7 +43,7 @@ export type ShareItem = IShareProject | IShareLib;
 // 分享历史
 export interface IShareHistory extends ISharePermission {
   ID: string; // 分享ID
-  user: IUser;
+  user: Partial<IUser>;
   shareType: ShareType;
   projectID?: string;
   compilationID?: string;
@@ -76,3 +76,9 @@ export interface IBulkShare {
   create?: ICreatShare[];
   remove?: IDelShare[];
 }
+
+// 初始化分享弹窗时需要的数据
+export interface IPreparePopup {
+  history: IShareHistory[];
+  recentContacts: IRecentUser[];
+}