From a1fc00dbb4926cda11db43cf081f4bc06bcf3f98 Mon Sep 17 00:00:00 2001
From: husq <931347610@qq.com>
Date: Mon, 04 Sep 2023 09:43:19 +0800
Subject: [PATCH] 项目编辑、新增接口功能对接
---
src/api/http/type.ts | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/api/http/type.ts b/src/api/http/type.ts
index f7d7982..78de4ca 100644
--- a/src/api/http/type.ts
+++ b/src/api/http/type.ts
@@ -17,11 +17,19 @@
pagination: IPage;
};
}
+// 接口返回参数字段
+interface Field<T> {
+ code: number
+ data: T,
+ message: string
+ success: boolean
+}
// Workspace
export interface IWorkspaceResponse<T> {
code: number;
- data: T;
+ data: Field<T>;
message: string;
+ success:boolean;
}
export type IStatus = 'WAITING' | 'DOING' | 'SUCCESS' | 'FAILED';
--
Gitblit v1.9.3