From 32f611d5eb9e43a0677f3e83899f10b6c2b7e063 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 06 三月 2025 16:59:20 +0800
Subject: [PATCH] release: @life-payment/components v0.0.3
---
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