From bc9db06646fc925635dd5995d521bcf9fd05aa93 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期五, 21 二月 2025 16:35:04 +0800 Subject: [PATCH] fix: 对接 --- packages/services/api/LifePay.ts | 99 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 97 insertions(+), 2 deletions(-) diff --git a/packages/services/api/LifePay.ts b/packages/services/api/LifePay.ts index 09b6036..301d9d3 100644 --- a/packages/services/api/LifePay.ts +++ b/packages/services/api/LifePay.ts @@ -7,7 +7,7 @@ body: API.LifeElectricDataCreateLifePayOrderInput, options?: API.RequestConfig ) { - return request<any>('/api/LifePay/CreateLifePayElectricOrder', { + return request<API.CreateLifePayOrderOutput>('/api/LifePay/CreateLifePayElectricOrder', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -22,7 +22,7 @@ body: API.LifePhoneDataCreateLifePayOrderInput, options?: API.RequestConfig ) { - return request<any>('/api/LifePay/CreateLifePayPhoneOrder', { + return request<API.CreateLifePayOrderOutput>('/api/LifePay/CreateLifePayPhoneOrder', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -40,6 +40,36 @@ }); } +/** 鑾峰彇璁㈠崟鍒嗛〉鏁版嵁 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 || {}), + }); +} + +/** 鏍规嵁璁㈠崟鍙疯幏鍙栨敮浠樼姸鎬� GET /api/LifePay/GetPayStatusByOrderNo */ +export async function getPayStatusByOrderNo( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: API.APIgetPayStatusByOrderNoParams, + options?: API.RequestConfig +) { + return request<API.LifePayStatusEnum>('/api/LifePay/GetPayStatusByOrderNo', { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + }); +} + /** 鑾峰彇璇濊垂闈㈠�� GET /api/LifePay/GetPhoneParValue */ export async function getPhoneParValue(options?: API.RequestConfig) { return request<API.PhoneParValueResponse>('/api/LifePay/GetPhoneParValue', { @@ -47,3 +77,68 @@ ...(options || {}), }); } + +/** 鑾峰彇鎶樻墸 GET /api/LifePay/GetRate */ +export async function getRate(options?: API.RequestConfig) { + return request<API.LifePayRateListOutput[]>('/api/LifePay/GetRate', { + method: 'GET', + ...(options || {}), + }); +} + +/** 鑾峰彇鎴戠殑璁㈠崟鍒嗛〉鏁版嵁 POST /api/LifePay/GetUserLifePayOrderPage */ +export async function getUserLifePayOrderPage( + body: API.QueryLifePayOrderListInput, + options?: API.RequestConfig +) { + return request<API.UserLifePayOrderOutputPageOutput>('/api/LifePay/GetUserLifePayOrderPage', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + +/** 鑾峰彇鐢ㄦ埛鍒嗛〉鏁版嵁 POST /api/LifePay/GetUserPage */ +export async function getUserPage(body: API.PageInput, options?: API.RequestConfig) { + return request<API.UserListOutputPageOutput>('/api/LifePay/GetUserPage', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + +/** 閫�娆剧敓娲荤即璐硅鍗� POST /api/LifePay/RefundLifePayOrder */ +export async function refundLifePayOrder( + body: API.RefundLifePayOrderInput, + options?: API.RequestConfig +) { + return request<any>('/api/LifePay/RefundLifePayOrder', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + +/** 璁剧疆鐢熸椿缂磋垂鏀粯绫诲瀷 POST /api/LifePay/SetLifePayOrderPayType */ +export async function setLifePayOrderPayType( + body: API.SetLifePayOrderPayTypeInput, + options?: API.RequestConfig +) { + return request<string>('/api/LifePay/SetLifePayOrderPayType', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} -- Gitblit v1.9.1