Explorar el Código

feat(types): 分享库调整

vian hace 4 años
padre
commit
46a6d8e7bd
Se han modificado 2 ficheros con 20 adiciones y 0 borrados
  1. 6 0
      types/src/interface/ration.ts
  2. 14 0
      types/src/interface/share.ts

+ 6 - 0
types/src/interface/ration.ts

@@ -443,3 +443,9 @@ export enum RationSubProp {
   INS = 'rationInstallList', // 定额安装增加费
   TPL = 'rationTemplate', // 定额子目模板
 }
+
+// 进入定额库需要准备的数据(一些状态)
+export interface IPrepareCptRationLib {
+  // 定额库分享人数
+  shareCount: number;
+}

+ 14 - 0
types/src/interface/share.ts

@@ -139,3 +139,17 @@ export interface IPrepareShareLinkProject {
   // 报表设置信息(用户)
   customizeCfg: any;
 }
+
+// 接收到的库数据
+export interface IReceivedShareLib {
+  // 类型
+  type: ShareType;
+  // 库名称
+  name: string;
+  // 拼接成的库ID(非分享数据ID)
+  ID: string;
+  // 分享时间
+  shareDate: number;
+  // 来自用户名
+  fromUserName: string;
+}