Explorar el Código

feat(types): 测试

lipk hace 3 años
padre
commit
87b308dd81
Se han modificado 2 ficheros con 49 adiciones y 0 borrados
  1. 48 0
      types/src/api/approvaApi.ts
  2. 1 0
      types/src/api/index.ts

+ 48 - 0
types/src/api/approvaApi.ts

@@ -0,0 +1,48 @@
+import { IGatherYsProfileFile, IMatterNode, UploadMsg } from "..";
+
+export namespace PostApprovalCopyGatherYsProfileFiles {
+
+    export type Params = {
+        fileDataList: {
+            name: string;
+            ext: string;
+            size: any;
+            path: string;
+            createTime: number;
+        }[];
+        gypID: string;
+    }
+
+    export interface Response {
+        fileList: IGatherYsProfileFile[];
+        count: number;
+    }
+
+}
+
+export namespace GetApprovalGetMatterData {
+    export type Params = {
+        businessID: string
+        // getAllMatter?: boolean // 是否获取全部matter
+    }
+
+    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: any[];
+        profileView: boolean;
+        uploadMsg: UploadMsg;
+        cadView: boolean;
+        copy: boolean
+    }
+}

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

@@ -0,0 +1 @@
+export * from './approvaApi';