소스 검색

feat(types): 类型复用

lipk 3 년 전
부모
커밋
e587d280d8
1개의 변경된 파일2개의 추가작업 그리고 8개의 파일을 삭제
  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>
 }