Explorar el Código

refactor(types): 分享相关类型变更

vian hace 5 años
padre
commit
9420eb6c9b
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      types/src/interface/share.ts

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

@@ -36,12 +36,13 @@ export interface IShare {
 export type ShareItem = IShareProject | IShareLib;
 
 export interface ICreatShare {
+  receiver: string;
   doc: ShareItem;
   type: ShareType;
 }
 
 export interface IUpdateShare {
-  filter: { projectID?: string; compilationID?: string };
+  filter: { receiver: string; projectID?: string; compilationID?: string };
   update: {
     updateDate?: number;
     isRead?: boolean;
@@ -52,7 +53,7 @@ export interface IUpdateShare {
 }
 
 export interface IDelShare {
-  filter: { projectID?: string; compilationID?: string };
+  filter: { receiver: string; projectID?: string; compilationID?: string };
   type: ShareType;
 }