From a1dfc1313e0bf9647c7d3a4046d62cf242177276 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 13 三月 2025 16:34:29 +0800
Subject: [PATCH] fix: 二期需求
---
packages/services/api/LifePay.ts | 324 +++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 309 insertions(+), 15 deletions(-)
diff --git a/packages/services/api/LifePay.ts b/packages/services/api/LifePay.ts
index 0808f78..bf9f909 100644
--- a/packages/services/api/LifePay.ts
+++ b/packages/services/api/LifePay.ts
@@ -2,12 +2,72 @@
// @ts-ignore
import { request } from '@/utils/request';
+/** 娣诲姞鎴栦慨鏀规垜鐨勬埛鍙� POST /api/LifePay/AddUpdateUserAccount */
+export async function addUpdateUserAccount(
+ body: API.AddUpdateUserAccountInput,
+ options?: API.RequestConfig
+) {
+ return request<number>('/api/LifePay/AddUpdateUserAccount', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 鎶樻墸閰嶇疆 POST /api/LifePay/CreateEditLifePayRate */
+export async function createEditLifePayRate(
+ body: API.LifePayRateInput[],
+ options?: API.RequestConfig
+) {
+ return request<number>('/api/LifePay/CreateEditLifePayRate', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 娓犻亾绠$悊 POST /api/LifePay/CreateEditPayChannels */
+export async function createEditPayChannels(
+ body: API.CreateEditPayChannelsInput,
+ options?: API.RequestConfig
+) {
+ return request<number>('/api/LifePay/CreateEditPayChannels', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
/** 鍒涘缓鐢熸椿缂磋垂鐢佃垂璁㈠崟 POST /api/LifePay/CreateLifePayElectricOrder */
export async function createLifePayElectricOrder(
body: API.LifeElectricDataCreateLifePayOrderInput,
options?: API.RequestConfig
) {
return request<API.CreateLifePayOrderOutput>('/api/LifePay/CreateLifePayElectricOrder', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 鍒涘缓鐢熸椿缂磋垂鐕冩皵璁㈠崟 POST /api/LifePay/CreateLifePayGasOrder */
+export async function createLifePayGasOrder(
+ body: API.LifeGasDataCreateLifePayOrderInput,
+ options?: API.RequestConfig
+) {
+ return request<API.CreateLifePayOrderOutput>('/api/LifePay/CreateLifePayGasOrder', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@@ -32,18 +92,113 @@
});
}
-/** 鑾峰彇鐢佃垂闈㈠�� GET /api/LifePay/GetElectricParValue */
-export async function getElectricParValue(options?: API.RequestConfig) {
- return request<API.ElectricParValueResponse>('/api/LifePay/GetElectricParValue', {
- method: 'GET',
+/** 鍒犻櫎鎴戠殑鎴峰彿 POST /api/LifePay/DeleteUserAccount */
+export async function deleteUserAccount(
+ // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+ params: API.APIdeleteUserAccountParams,
+ options?: API.RequestConfig
+) {
+ return request<number>('/api/LifePay/DeleteUserAccount', {
+ method: 'POST',
+ params: {
+ ...params,
+ },
...(options || {}),
});
}
-/** 鑾峰彇鐢佃垂鍏呭�煎尯鍩� GET /api/LifePay/GetElectricSupportArea */
-export async function getElectricSupportArea(options?: API.RequestConfig) {
+/** 鑾峰彇鐢ㄦ埛鎴峰彿鍒嗛〉鏁版嵁 POST /api/LifePay/GetAccountPage */
+export async function getAccountPage(
+ body: API.QueryUserAccountListInput,
+ options?: API.RequestConfig
+) {
+ return request<API.UserAccountOutputPageOutput>('/api/LifePay/GetAccountPage', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 鑾峰彇鐢佃垂闈㈠�� POST /api/LifePay/GetElectricParValue */
+export async function getElectricParValue(
+ body: API.ChannelsBaseInput,
+ options?: API.RequestConfig
+) {
+ return request<API.ElectricParValueResponse>('/api/LifePay/GetElectricParValue', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 鑾峰彇鐢佃垂鍏呭�煎尯鍩� POST /api/LifePay/GetElectricSupportArea */
+export async function getElectricSupportArea(
+ body: API.ChannelsBaseInput,
+ options?: API.RequestConfig
+) {
return request<API.ElectricSupportAreaResponse>('/api/LifePay/GetElectricSupportArea', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 鑾峰彇鐕冩皵鏀寔鍟嗘埛 POST /api/LifePay/GetGasOrgType */
+export async function getGasOrgType(body: API.ChannelsBaseInput, options?: API.RequestConfig) {
+ return request<API.GasOrgTypeValueResponse>('/api/LifePay/GetGasOrgType', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 鑾峰彇鐕冩皵闈㈠�� POST /api/LifePay/GetGasParValue */
+export async function getGasParValue(body: API.ChannelsBaseInput, options?: API.RequestConfig) {
+ return request<API.GasParValueResponse>('/api/LifePay/GetGasParValue', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 鑾峰彇娓犻亾璇︽儏 GET /api/LifePay/GetLifePayChannlesDto */
+export async function getLifePayChannlesDto(
+ // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+ params: API.APIgetLifePayChannlesDtoParams,
+ options?: API.RequestConfig
+) {
+ return request<API.CreateEditPayChannelsInput>('/api/LifePay/GetLifePayChannlesDto', {
method: 'GET',
+ params: {
+ ...params,
+ },
+ ...(options || {}),
+ });
+}
+
+/** 鑾峰彇缂磋垂娓犻亾鍒楄〃 POST /api/LifePay/GetLifePayChannlesPage */
+export async function getLifePayChannlesPage(body: API.PageInput, options?: API.RequestConfig) {
+ return request<API.CreateEditPayChannelsInputPageOutput>('/api/LifePay/GetLifePayChannlesPage', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
...(options || {}),
});
}
@@ -54,6 +209,21 @@
options?: API.RequestConfig
) {
return request<API.LifePayOrderListOutputPageOutput>('/api/LifePay/GetLifePayOrderPage', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 瀵煎嚭璁㈠崟Excel POST /api/LifePay/GetLifePayOrderPageExport */
+export async function getLifePayOrderPageExport(
+ body: API.QueryLifePayOrderListInput,
+ options?: API.RequestConfig
+) {
+ return request<any>('/api/LifePay/GetLifePayOrderPageExport', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@@ -78,25 +248,29 @@
});
}
-/** 鏍规嵁璁㈠崟鍙疯幏鍙栨敮浠樼姸鎬� GET /api/LifePay/GetPayStatusByOrderNo */
+/** 鏍规嵁璁㈠崟鍙疯幏鍙栨敮浠樼姸鎬� POST /api/LifePay/GetPayStatusByOrderNo */
export async function getPayStatusByOrderNo(
- // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
- params: API.APIgetPayStatusByOrderNoParams,
+ body: API.GetPayStatusByOrderNoInput,
options?: API.RequestConfig
) {
return request<API.LifePayStatusEnum>('/api/LifePay/GetPayStatusByOrderNo', {
- method: 'GET',
- params: {
- ...params,
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
},
+ data: body,
...(options || {}),
});
}
-/** 鑾峰彇璇濊垂闈㈠�� GET /api/LifePay/GetPhoneParValue */
-export async function getPhoneParValue(options?: API.RequestConfig) {
+/** 鑾峰彇璇濊垂闈㈠�� POST /api/LifePay/GetPhoneParValue */
+export async function getPhoneParValue(body: API.ChannelsBaseInput, options?: API.RequestConfig) {
return request<API.PhoneParValueResponse>('/api/LifePay/GetPhoneParValue', {
- method: 'GET',
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
...(options || {}),
});
}
@@ -105,6 +279,66 @@
export async function getRate(options?: API.RequestConfig) {
return request<API.LifePayRateListOutput[]>('/api/LifePay/GetRate', {
method: 'GET',
+ ...(options || {}),
+ });
+}
+
+/** 鑾峰彇鎴戠殑鍏ㄩ儴鎴峰彿鍒楄〃 POST /api/LifePay/GetUserAccountAllList */
+export async function getUserAccountAllList(
+ body: API.QueryUserAccountAllListInput,
+ options?: API.RequestConfig
+) {
+ return request<API.UserAccountOutput[]>('/api/LifePay/GetUserAccountAllList', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 鑾峰彇鎴戠殑鎴峰彿璇︽儏 GET /api/LifePay/GetUserAccountDetail */
+export async function getUserAccountDetail(
+ // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+ params: API.APIgetUserAccountDetailParams,
+ options?: API.RequestConfig
+) {
+ return request<API.UserAccountOutput>('/api/LifePay/GetUserAccountDetail', {
+ method: 'GET',
+ params: {
+ ...params,
+ },
+ ...(options || {}),
+ });
+}
+
+/** 鑾峰彇鎴戠殑鎴峰彿鍒楄〃 POST /api/LifePay/GetUserAccountList */
+export async function getUserAccountList(
+ body: API.QueryUserAccountListInput,
+ options?: API.RequestConfig
+) {
+ return request<API.UserAccountOutputPageOutput>('/api/LifePay/GetUserAccountList', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 鑾峰彇鎴戠殑璁㈠崟璇︽儏 GET /api/LifePay/GetUserLifePayOrderDetail */
+export async function getUserLifePayOrderDetail(
+ // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+ params: API.APIgetUserLifePayOrderDetailParams,
+ options?: API.RequestConfig
+) {
+ return request<API.UserLifePayOrderOutput>('/api/LifePay/GetUserLifePayOrderDetail', {
+ method: 'GET',
+ params: {
+ ...params,
+ },
...(options || {}),
});
}
@@ -120,6 +354,21 @@
'Content-Type': 'application/json',
},
data: body,
+ ...(options || {}),
+ });
+}
+
+/** 鐢ㄦ埛鏌ョ湅鐢熸椿缂磋垂閫�娆惧け璐ヨ鎯� GET /api/LifePay/GetUserLifePayOrderRefund */
+export async function getUserLifePayOrderRefund(
+ // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+ params: API.APIgetUserLifePayOrderRefundParams,
+ options?: API.RequestConfig
+) {
+ return request<API.UserLifePayOrderRefundOutput>('/api/LifePay/GetUserLifePayOrderRefund', {
+ method: 'GET',
+ params: {
+ ...params,
+ },
...(options || {}),
});
}
@@ -151,6 +400,51 @@
});
}
+/** 鐢ㄦ埛鍙戣捣鐢熸椿缂磋垂閫�娆� POST /api/LifePay/RefundUserLifePayOrder */
+export async function refundUserLifePayOrder(
+ body: API.RefundUserLifePayOrderInput,
+ options?: API.RequestConfig
+) {
+ return request<number>('/api/LifePay/RefundUserLifePayOrder', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 閫�娆鹃┏鍥� POST /api/LifePay/RejectRefundLifePayOrder */
+export async function rejectRefundLifePayOrder(
+ body: API.RefundLifePayOrderInput,
+ options?: API.RequestConfig
+) {
+ return request<number>('/api/LifePay/RejectRefundLifePayOrder', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 璁剧疆娓犻亾鍚敤鐘舵�� GET /api/LifePay/SetLifePayChannelsStatus */
+export async function setLifePayChannelsStatus(
+ // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+ params: API.APIsetLifePayChannelsStatusParams,
+ options?: API.RequestConfig
+) {
+ return request<number>('/api/LifePay/SetLifePayChannelsStatus', {
+ method: 'GET',
+ params: {
+ ...params,
+ },
+ ...(options || {}),
+ });
+}
+
/** 璁剧疆鐢熸椿缂磋垂鏀粯绫诲瀷 POST /api/LifePay/SetLifePayOrderPayType */
export async function setLifePayOrderPayType(
body: API.SetLifePayOrderPayTypeInput,
--
Gitblit v1.9.1