Преглед изворни кода

feat(types): 工作台添加profile资料清单字段

lipk пре 3 година
родитељ
комит
7849adb3bf
2 измењених фајлова са 8 додато и 1 уклоњено
  1. 7 1
      types/src/interface/api/workSpaceApi.ts
  2. 1 0
      types/src/interface/generalSetting.ts

+ 7 - 1
types/src/interface/api/workSpaceApi.ts

@@ -1,11 +1,17 @@
+import { IYsProfileTemplate } from '../matter';
+
 // 获取资料清单的文件结构
 export namespace GetYsProfileList {
   export type Params = {
     matterID: string;
   };
 
+  type IYsProfileTemplateItem = IYsProfileTemplate & {
+    children?: IYsProfileTemplateItem[];
+  };
+
   export type Response = {
-    fileTree: any[]; // 太多类型丢失了,补不回来了
+    fileTree: IYsProfileTemplateItem[];
   };
 }
 

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

@@ -24,4 +24,5 @@ export interface IGeneralSetting {
     secondaryCertification: boolean;
   };
   downtimeAnnouncement?: IDowntimeAnnouncement;
+  profile?: { matterListID: string; matterID: string }[];
 }