From ca03f54c785cc814b9efa75b3aa1985b1c30e960 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期三, 15 十月 2025 17:29:03 +0800 Subject: [PATCH] feat: 结算调整 --- src/services/api/enterpriseWallet.ts | 193 ++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 187 insertions(+), 6 deletions(-) diff --git a/src/services/api/enterpriseWallet.ts b/src/services/api/enterpriseWallet.ts index b03ba6d..917fced 100644 --- a/src/services/api/enterpriseWallet.ts +++ b/src/services/api/enterpriseWallet.ts @@ -239,6 +239,26 @@ ); } +/** 鏌ヨ宸茬绾︿紒涓氶挶鍖呴�氶亾閫夋嫨鍣ㄦ暟鎹� GET /api/user/enterpriseWallet/getEnterpriseWalletAccessSelect */ +export async function getEnterpriseWalletAccessSelect( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIgetEnterpriseWalletAccessSelectParams, + options?: API.RequestConfig +) { + return request<API.SelectOptionGuidGetEnterpriseWalletAccessSelectQueryOption[]>( + '/api/user/enterpriseWallet/getEnterpriseWalletAccessSelect', + { + method: 'GET', + params: { + ...params, + request: undefined, + ...params['request'], + }, + ...(options || {}), + } + ); +} + /** 鏌ヨ鏀粯瀹濊祫閲戜簩绾у晢鎴稫YB浠h繘浠跺崟璇︽儏 GET /api/user/enterpriseWallet/getEnterpriseWalletExpandindirectOrder */ export async function getEnterpriseWalletExpandindirectOrder( // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) @@ -275,6 +295,134 @@ ); } +/** 鏌ヨ浼佷笟寰俊鏀粯閽卞寘璇︽儏 GET /api/user/enterpriseWallet/getEnterpriseWeChatPayWallet */ +export async function getEnterpriseWeChatPayWallet( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIgetEnterpriseWeChatPayWalletParams, + options?: API.RequestConfig +) { + return request<API.GetEnterpriseWeChatPayWalletQueryResult>( + '/api/user/enterpriseWallet/getEnterpriseWeChatPayWallet', + { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + } + ); +} + +/** 鏌ヨ浼佷笟寰俊閽卞寘鍦板尯 GET /api/user/enterpriseWallet/getEnterpriseWeChatPayWalletAreas */ +export async function getEnterpriseWeChatPayWalletAreas( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIgetEnterpriseWeChatPayWalletAreasParams, + options?: API.RequestConfig +) { + return request<API.WeChatPayArea[]>( + '/api/user/enterpriseWallet/getEnterpriseWeChatPayWalletAreas', + { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + } + ); +} + +/** 鏌ヨ浼佷笟寰俊鏀粯閾惰璐︽埛鏇存柊淇℃伅 GET /api/user/enterpriseWallet/getEnterpriseWeChatPayWalletBankAccountUpdateInfo */ +export async function getEnterpriseWeChatPayWalletBankAccountUpdateInfo( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIgetEnterpriseWeChatPayWalletBankAccountUpdateInfoParams, + options?: API.RequestConfig +) { + return request<API.GetEnterpriseWeChatPayWalletBankAccountUpdateInfoQueryResult>( + '/api/user/enterpriseWallet/getEnterpriseWeChatPayWalletBankAccountUpdateInfo', + { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + } + ); +} + +/** 鏌ヨ浼佷笟寰俊鏀粯閽卞寘鏀鍒嗛〉鍒楄〃 POST /api/user/enterpriseWallet/getEnterpriseWeChatPayWalletBankBranches */ +export async function getEnterpriseWeChatPayWalletBankBranches( + body: API.GetEnterpriseWeChatPayWalletBankBranchesQuery, + options?: API.RequestConfig +) { + return request<API.GetEnterpriseWeChatPayWalletBankBranchesQueryResult>( + '/api/user/enterpriseWallet/getEnterpriseWeChatPayWalletBankBranches', + { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + } + ); +} + +/** 鏌ヨ浼佷笟寰俊鏀粯閽卞寘閾惰鍩庡競鍒楄〃 GET /api/user/enterpriseWallet/getEnterpriseWeChatPayWalletBankCities */ +export async function getEnterpriseWeChatPayWalletBankCities( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIgetEnterpriseWeChatPayWalletBankCitiesParams, + options?: API.RequestConfig +) { + return request<API.GetEnterpriseWeChatPayWalletBankCitiesQueryItem[]>( + '/api/user/enterpriseWallet/getEnterpriseWeChatPayWalletBankCities', + { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + } + ); +} + +/** 鏌ヨ浼佷笟寰俊鏀粯閽卞寘閾惰鐪佷唤鍒楄〃 GET /api/user/enterpriseWallet/getEnterpriseWeChatPayWalletBankProvinces */ +export async function getEnterpriseWeChatPayWalletBankProvinces( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIgetEnterpriseWeChatPayWalletBankProvincesParams, + options?: API.RequestConfig +) { + return request<API.GetEnterpriseWeChatPayWalletBankProvincesQueryItem[]>( + '/api/user/enterpriseWallet/getEnterpriseWeChatPayWalletBankProvinces', + { + method: 'GET', + params: { + ...params, + request: undefined, + ...params['request'], + }, + ...(options || {}), + } + ); +} + +/** 鏌ヨ浼佷笟寰俊鏀粯閽卞寘閾惰鍒嗛〉鍒楄〃 POST /api/user/enterpriseWallet/getEnterpriseWeChatPayWalletBanks */ +export async function getEnterpriseWeChatPayWalletBanks( + body: API.GetEnterpriseWeChatPayWalletBanksQuery, + options?: API.RequestConfig +) { + return request<API.GetEnterpriseWeChatPayWalletBanksQueryResult>( + '/api/user/enterpriseWallet/getEnterpriseWeChatPayWalletBanks', + { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + } + ); +} + /** 寮�閫氫紒涓氶挶鍖� POST /api/user/enterpriseWallet/openEnterpriseWallet */ export async function openEnterpriseWallet( body: API.OpenEnterpriseWalletCommand, @@ -282,6 +430,24 @@ ) { return request<API.OpenEnterpriseWalletCommandResult>( '/api/user/enterpriseWallet/openEnterpriseWallet', + { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + } + ); +} + +/** 寮�閫氫紒涓氬井淇¢挶鍖� POST /api/user/enterpriseWallet/openEnterpriseWeChatPayWallet */ +export async function openEnterpriseWeChatPayWallet( + body: API.OpenEnterpriseWeChatPayWalletCommand, + options?: API.RequestConfig +) { + return request<API.OpenEnterpriseWeChatPayWalletCommandResult>( + '/api/user/enterpriseWallet/openEnterpriseWeChatPayWallet', { method: 'POST', headers: { @@ -311,12 +477,9 @@ ); } -/** 浼佷笟閽卞寘杞处 POST /api/user/enterpriseWallet/transferEnterpriseWallet */ -export async function transferEnterpriseWallet( - body: API.TransferEnterpriseWalletCommand, - options?: API.RequestConfig -) { - return request<string>('/api/user/enterpriseWallet/transferEnterpriseWallet', { +/** 娴嬭瘯寰俊鏀粯 POST /api/user/enterpriseWallet/testWeChatPay */ +export async function testWeChatPay(body: API.TestWeChatPayCommand, options?: API.RequestConfig) { + return request<boolean>('/api/user/enterpriseWallet/testWeChatPay', { method: 'POST', headers: { 'Content-Type': 'application/json-patch+json', @@ -325,3 +488,21 @@ ...(options || {}), }); } + +/** 淇敼浼佷笟寰俊鏀粯閽卞寘缁撶畻璐︽埛 POST /api/user/enterpriseWallet/updateEnterpriseWeChatPayWalletBankAccountInfo */ +export async function updateEnterpriseWeChatPayWalletBankAccountInfo( + body: API.UpdateEnterpriseWeChatPayWalletBankAccountInfoCommand, + options?: API.RequestConfig +) { + return request<API.UpdateEnterpriseWeChatPayWalletBankAccountInfoCommandResult>( + '/api/user/enterpriseWallet/updateEnterpriseWeChatPayWalletBankAccountInfo', + { + method: 'POST', + headers: { + 'Content-Type': 'application/json-patch+json', + }, + data: body, + ...(options || {}), + } + ); +} -- Gitblit v1.9.1