Przeglądaj źródła

feat(types): 类型复用

lipk 3 lat temu
rodzic
commit
e587d280d8
1 zmienionych plików z 2 dodań i 8 usunięć
  1. 2 8
      types/src/api/Approval.ts

+ 2 - 8
types/src/api/Approval.ts

@@ -1,4 +1,4 @@
-import { IGatherYsProfileFile } from "../interface";
+import { IGatherYsProfileFile, IMatterNode } from "../interface";
 
 export namespace PostApprovalCopyGatherYsProfileFiles {
 
@@ -25,11 +25,5 @@ export namespace GetApprovalGetMatterData {
         businessID: string
     }
 
-    export type Response = {
-        components: any[];
-        ID: string;
-        parentID: string;
-        seq: number;
-        name: string;
-    }
+    export type Response = Array<IMatterNode>
 }