Просмотр исходного кода

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

lipk 3 лет назад
Родитель
Сommit
29bb1111c0

+ 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'