From 65fdfc6dd82f0bcf6c6826fe1ab645b309f6045c Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 23 十月 2025 19:37:06 +0800
Subject: [PATCH] fix: bug
---
src/services/api/TaiPing.ts | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/src/services/api/TaiPing.ts b/src/services/api/TaiPing.ts
index 331f5f0..98f44c4 100644
--- a/src/services/api/TaiPing.ts
+++ b/src/services/api/TaiPing.ts
@@ -4,7 +4,7 @@
/** 涓�姝ュ嚭鍗� POST /api/TaiPing/Proposal */
export async function proposal(body: API.ProposalInput, options?: API.RequestConfig) {
- return request<API.ProposalResponseData>('/api/TaiPing/Proposal', {
+ return request<API.ProposalOutput>('/api/TaiPing/Proposal', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@@ -15,16 +15,13 @@
}
/** 澶钩淇濋櫓鎵夸繚鎴愬姛閫氱煡 POST /api/TaiPing/Success */
-export async function success(
- // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
- params: API.APIsuccessParams,
- options?: API.RequestConfig
-) {
- return request<string>('/api/TaiPing/Success', {
+export async function success(body: Record<string, any>, options?: API.RequestConfig) {
+ return request<any>('/api/TaiPing/Success', {
method: 'POST',
- params: {
- ...params,
+ headers: {
+ 'Content-Type': 'application/json',
},
+ data: body,
...(options || {}),
});
}
--
Gitblit v1.9.1