Jelajahi Sumber

feat(types): 获取配置处理

lipk 3 tahun lalu
induk
melakukan
280f42f2d4

+ 19 - 1
types/src/api/Approval.ts

@@ -1,4 +1,4 @@
-import { IGatherYsProfileFile, IMatterNode } from "../interface";
+import { IGatherYsProfileFile, IMatterNode, UploadMsg } from "../interface";
 
 export namespace PostApprovalCopyGatherYsProfileFiles {
 
@@ -26,4 +26,22 @@ export namespace GetApprovalGetMatterData {
     }
 
     export type Response = Array<IMatterNode>
+}
+
+export namespace GetApprovalGetYsProfileTreeWithFile {
+    export type Params = { businessId: string; matterId: string }
+
+    export type Response = Array<IMatterNode>
+}
+
+export namespace GetApprovalGetGatherYsProfileByBusinessID {
+    export type Params = { businessID: string; matterID: string }
+
+    export type Response = {
+        tree: [];
+        profileView: boolean;
+        uploadMsg: UploadMsg;
+        cadView: boolean;
+        copy: boolean
+    }
 }

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

@@ -43,3 +43,4 @@ export * from './processLog';
 export * from './generalSetting';
 export * from './resultDocument';
 export * from './budgetCheck';
+export * from './uploadMsg'

+ 2 - 1
types/src/interface/platformSwitch.ts

@@ -5,5 +5,6 @@ export interface IPlatformSwitch {// 项目功能开关
     fileFormat: string;// 文件格式
     uploadNumber: number;// 上传数量
     uploadSize: number;// 上传大小
-    cadView: boolean
+    cadView: boolean // cad预览开关
+    copy: boolean  // 拷贝文件开关
 }

+ 5 - 0
types/src/interface/uploadMsg.ts

@@ -0,0 +1,5 @@
+export interface UploadMsg {
+    accept: string;
+    limit: number;
+    size: number;
+}