From e92e1441cf6f968f0d872b04d3aeef7cd824cf7f Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期三, 26 二月 2025 10:16:50 +0800 Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/LifePaymentFront --- packages/services/api/LifePay.ts | 25 ++++++++++++++++++++++++- 1 files changed, 24 insertions(+), 1 deletions(-) diff --git a/packages/services/api/LifePay.ts b/packages/services/api/LifePay.ts index 301d9d3..1a41c6e 100644 --- a/packages/services/api/LifePay.ts +++ b/packages/services/api/LifePay.ts @@ -40,12 +40,35 @@ }); } +/** 鑾峰彇鐢佃垂鍏呭�煎尯鍩� GET /api/LifePay/GetElectricSupportArea */ +export async function getElectricSupportArea(options?: API.RequestConfig) { + return request<API.ElectricSupportAreaResponse>('/api/LifePay/GetElectricSupportArea', { + method: 'GET', + ...(options || {}), + }); +} + /** 鑾峰彇璁㈠崟鍒嗛〉鏁版嵁 POST /api/LifePay/GetLifePayOrderPage */ export async function getLifePayOrderPage( body: API.QueryLifePayOrderListInput, options?: API.RequestConfig ) { return request<API.LifePayOrderListOutputPageOutput>('/api/LifePay/GetLifePayOrderPage', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + +/** 鑾峰彇寰俊鏀粯鐨凧SAPI POST /api/LifePay/GetPayOrderForJsAPI */ +export async function getPayOrderForJsAPI( + body: API.GetPayOrderForJsAPIInput, + options?: API.RequestConfig +) { + return request<API.ModelPayPrePayId>('/api/LifePay/GetPayOrderForJsAPI', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -118,7 +141,7 @@ body: API.RefundLifePayOrderInput, options?: API.RequestConfig ) { - return request<any>('/api/LifePay/RefundLifePayOrder', { + return request<number>('/api/LifePay/RefundLifePayOrder', { method: 'POST', headers: { 'Content-Type': 'application/json', -- Gitblit v1.9.1