Explorar o código

refactor(types): 变更share

vian %!s(int64=5) %!d(string=hai) anos
pai
achega
a663810c00
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  1. 5 2
      types/src/interface/share.ts

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

@@ -41,8 +41,11 @@ export type ShareItem = IShareProject | IShareLib;
 
 // 分享历史
 export interface IShareHistory extends ISharePermission {
+  ID: string; // 分享ID
   user: IUser;
   shareType: ShareType;
+  projectID?: string;
+  compilationID?: string;
 }
 
 export interface ICreatShare {
@@ -52,7 +55,7 @@ export interface ICreatShare {
 }
 
 export interface IUpdateShare {
-  filter: { receiver: string; projectID?: string; compilationID?: string };
+  filter: { ID: string; projectID?: string; compilationID?: string };
   update: {
     updateDate?: number;
     isRead?: boolean;
@@ -63,7 +66,7 @@ export interface IUpdateShare {
 }
 
 export interface IDelShare {
-  filter: { receiver: string; projectID?: string; compilationID?: string };
+  filter: { ID: string; projectID?: string; compilationID?: string };
   type: ShareType;
 }