From e372854c71bc97d162452cc4b3f5cfa586da50a8 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期四, 22 五月 2025 17:06:31 +0800 Subject: [PATCH] feat: UI --- packages/services/api/LifePay.ts | 100 +++++++++++++++++++++++++++++++++++++++++++------- 1 files changed, 86 insertions(+), 14 deletions(-) diff --git a/packages/services/api/LifePay.ts b/packages/services/api/LifePay.ts index a1b891b..9961f02 100644 --- a/packages/services/api/LifePay.ts +++ b/packages/services/api/LifePay.ts @@ -176,9 +176,17 @@ }); } -/** 鍚屾璁㈠崟 GET /api/LifePay/GetAllChannlesRake */ +/** 鍚屾璁㈠崟鍒嗕剑淇℃伅 GET /api/LifePay/GetAllChannlesRake */ export async function getAllChannlesRake(options?: API.RequestConfig) { return request<any>('/api/LifePay/GetAllChannlesRake', { + method: 'GET', + ...(options || {}), + }); +} + +/** 缁熻浜ゆ槗娴佹按 GET /api/LifePay/GetAllLifePayConsumption */ +export async function getAllLifePayConsumption(options?: API.RequestConfig) { + return request<any>('/api/LifePay/GetAllLifePayConsumption', { method: 'GET', ...(options || {}), }); @@ -207,9 +215,39 @@ }); } +/** 娓犻亾鏁版嵁 POST /api/LifePay/GetChannelDataList */ +export async function getChannelDataList( + body: API.TopStatisticsInput, + options?: API.RequestConfig +) { + return request<API.ChannelDataListOutPut>('/api/LifePay/GetChannelDataList', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + /** 鑾峰彇娓犻亾鎶樻墸 POST /api/LifePay/GetChannelRate */ export async function getChannelRate(body: API.ChannelsBaseInput, options?: API.RequestConfig) { return request<API.ChannelRateOutput>('/api/LifePay/GetChannelRate', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + +/** 30鏃ヤ剑閲戝垪琛� POST /api/LifePay/GetChannlesRakeList */ +export async function getChannlesRakeList( + body: API.TopStatisticsInput, + options?: API.RequestConfig +) { + return request<API.ChannlesRakeListOutPut>('/api/LifePay/GetChannlesRakeList', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -288,10 +326,17 @@ }); } -/** 鑾峰彇鍏ㄩ儴缂磋垂娓犻亾 GET /api/LifePay/GetLifePayChannlesAllList */ -export async function getLifePayChannlesAllList(options?: API.RequestConfig) { +/** 鑾峰彇鍏ㄩ儴缂磋垂娓犻亾 POST /api/LifePay/GetLifePayChannlesAllList */ +export async function getLifePayChannlesAllList( + body: API.QueryLifePayChannlesInput, + options?: API.RequestConfig +) { return request<API.CreateEditPayChannelsInput[]>('/api/LifePay/GetLifePayChannlesAllList', { - method: 'GET', + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, ...(options || {}), }); } @@ -354,6 +399,24 @@ data: body, ...(options || {}), }); +} + +/** 鑾峰彇娑堣垂娴佹按鍒嗛〉鏁版嵁 POST /api/LifePay/GetLifePayConsumptionPage */ +export async function getLifePayConsumptionPage( + body: API.LifePayConsumptionPageInput, + options?: API.RequestConfig +) { + return request<API.LifePayConsumptionListOutputPageOutput>( + '/api/LifePay/GetLifePayConsumptionPage', + { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + } + ); } /** 鑾峰彇鏀舵敮娴佹按鍒嗛〉鏁版嵁 POST /api/LifePay/GetLifePayExpensesReceiptsPage */ @@ -548,17 +611,26 @@ }); } -/** 鑾峰彇椤堕儴缁熻鏁版嵁 GET /api/LifePay/GetTopStatistics */ -export async function getTopStatistics( - // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) - params: API.APIgetTopStatisticsParams, - options?: API.RequestConfig -) { - return request<API.TopStatisticsOutput>('/api/LifePay/GetTopStatistics', { - method: 'GET', - params: { - ...params, +/** 鑾峰彇30鏃ユ敹娆剧粺璁� POST /api/LifePay/GetReceiptsList */ +export async function getReceiptsList(body: API.TopStatisticsInput, options?: API.RequestConfig) { + return request<API.ReceiptsListOutPut>('/api/LifePay/GetReceiptsList', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', }, + data: body, + ...(options || {}), + }); +} + +/** 鑾峰彇椤堕儴缁熻鏁版嵁 POST /api/LifePay/GetTopStatistics */ +export async function getTopStatistics(body: API.TopStatisticsInput, options?: API.RequestConfig) { + return request<API.TopStatisticsOutput>('/api/LifePay/GetTopStatistics', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, ...(options || {}), }); } -- Gitblit v1.9.1