소스 검색

feat(types): 接口定义初次尝试

lipk 3 년 전
부모
커밋
29bb1111c0
3개의 변경된 파일6개의 추가작업 그리고 12개의 파일을 삭제
  1. 4 10
      types/src/api/PostApprovalCopyGatherYsProfileFiles.ts
  2. 1 1
      types/src/api/index.ts
  3. 1 1
      types/src/index.ts

+ 4 - 10
types/src/api/PostApprovalCopyGatherYsProfileFiles.ts

@@ -2,9 +2,7 @@ import { IGatherYsProfileFile } from "../interface";
 
 export namespace PostApprovalCopyGatherYsProfileFiles {
 
-    export const url = "/approval/copyGatherYsProfileFiles";
-
-    export type Body = {
+    export type Params = {
         fileDataList: {
             name: string;
             ext: string;
@@ -15,13 +13,9 @@ export namespace PostApprovalCopyGatherYsProfileFiles {
         gypID: string;
     }
 
-    export interface Response200 {
-        errno: number;
-        data: {
-            fileList: IGatherYsProfileFile[];
-            count: number;
-        };
-        message: string;
+    export interface Response {
+        fileList: IGatherYsProfileFile[];
+        count: number;
     }
 
 }

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

@@ -1 +1 @@
-export * from './PostApprovalCopyGatherYsProfileFiles';
+export * from './Approval';

+ 1 - 1
types/src/index.ts

@@ -1,2 +1,2 @@
 export * from './interface/index';
-export * from './api/PostApprovalCopyGatherYsProfileFiles'
+export * from './api/index'