Parcourir la source

feat(types): 分享调整

vian il y a 4 ans
Parent
commit
82d3a2ae6a
2 fichiers modifiés avec 18 ajouts et 1 suppressions
  1. 1 0
      types/src/interface/glj.ts
  2. 17 1
      types/src/interface/share.ts

+ 1 - 0
types/src/interface/glj.ts

@@ -393,6 +393,7 @@ export interface ISelectGljLibItem {
   key: string; // 与gljLibID拼接的形成的唯一值
   isPrior: boolean; // 优先的
   from: FromType;
+  isShare?: boolean; // 是否是被人分享的
   located?: boolean; // 定位到的库(替换时需要)
 }
 

+ 17 - 1
types/src/interface/share.ts

@@ -1,7 +1,7 @@
 import { IOption } from './option';
 import { ICompilation } from './compilation';
 import { IRecentUser, IUser } from './user';
-import { ISystemSetting } from '.';
+import { ISystemSetting, ProjectType } from '.';
 
 export enum ShareType {
   PROJECT = 1, // 项目
@@ -140,6 +140,22 @@ export interface IPrepareShareLinkProject {
   customizeCfg: any;
 }
 
+// 接收到的项目数据
+export interface IReceivedShareProject {
+  // 项目ID
+  ID: string;
+  // 项目类型
+  type: ProjectType;
+  // 建设项目名称
+  name: string;
+  // 建设项目下分享的工程
+  children: IReceivedShareProject[];
+  // 来自用户名
+  fromUserName: string;
+  // 分享时间
+  shareDate: number;
+}
+
 // 接收到的库数据
 export interface IReceivedShareLib {
   // 类型