From 42ff9c53a3db88eb0b311767d45452be27a5d544 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期二, 23 九月 2025 14:32:42 +0800 Subject: [PATCH] feat: 结算 --- src/services/api/user.ts | 71 ++++++++++++++++++++++++++++++++++- 1 files changed, 69 insertions(+), 2 deletions(-) diff --git a/src/services/api/user.ts b/src/services/api/user.ts index 99c7719..5af015b 100644 --- a/src/services/api/user.ts +++ b/src/services/api/user.ts @@ -30,8 +30,6 @@ method: 'GET', params: { ...params, - request: undefined, - ...params['request'], }, ...(options || {}), }); @@ -70,6 +68,60 @@ ); } +/** 鏌ヨ涓汉鐢ㄦ埛鏀舵敮鏄庣粏璇︽儏 GET /api/user/user/getPersonalUserTransaction */ +export async function getPersonalUserTransaction( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIgetPersonalUserTransactionParams, + options?: API.RequestConfig +) { + return request<API.GetPersonalUserTransactionQueryResult>( + '/api/user/user/getPersonalUserTransaction', + { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + } + ); +} + +/** 鏌ヨ涓汉鐢ㄦ埛鏀舵敮鏄庣粏鍒嗛〉鍒楄〃鏁版嵁 POST /api/user/user/getPersonalUserTransactions */ +export async function getPersonalUserTransactions( + body: API.GetPersonalUserTransactionsQuery, + options?: API.RequestConfig +) { + return request<API.GetPersonalUserTransactionsQueryResult>( + '/api/user/user/getPersonalUserTransactions', + { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + } + ); +} + +/** 鏌ヨ涓汉閽卞寘浣欓鍒嗛〉鍒楄〃 POST /api/user/user/getPersonalUserWalletBalances */ +export async function getPersonalUserWalletBalances( + body: API.GetPersonalUserWalletBalancesQuery, + options?: API.RequestConfig +) { + return request<API.GetPersonalUserWalletBalancesQueryResult>( + '/api/user/user/getPersonalUserWalletBalances', + { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + } + ); +} + /** 鏌ヨ鐢ㄦ埛瑙掕壊鍒楄〃 GET /api/user/user/getUserInfoRoles */ export async function getUserInfoRoles( // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) @@ -100,6 +152,21 @@ }); } +/** 鍙戦�佺粦瀹氶摱琛屽崱鐭俊 POST /api/user/user/sendSavePersonalUserBankCardVerifyCode */ +export async function sendSavePersonalUserBankCardVerifyCode( + body: API.SendSavePersonalUserBankCardVerifyCodeCommand, + options?: API.RequestConfig +) { + return request<string>('/api/user/user/sendSavePersonalUserBankCardVerifyCode', { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + }); +} + /** 璁剧疆鐢ㄦ埛淇℃伅瑙掕壊 PUT /api/user/user/setUserInfoRoles */ export async function setUserInfoRoles( body: API.SetUserInfoRolesCommand, -- Gitblit v1.9.1