Procházet zdrojové kódy

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

lipk před 3 roky
rodič
revize
7849adb3bf

+ 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 }[];
 }