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/core/src/lifeRechargeServices.ts |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 57 insertions(+), 2 deletions(-)

diff --git a/packages/core/src/lifeRechargeServices.ts b/packages/core/src/lifeRechargeServices.ts
index 1bfa225..b66a533 100644
--- a/packages/core/src/lifeRechargeServices.ts
+++ b/packages/core/src/lifeRechargeServices.ts
@@ -351,9 +351,13 @@
   }
 
   /** 鑾峰彇鍏ㄩ儴缂磋垂娓犻亾 GET /api/LifePay/GetLifePayChannlesAllList */
-  async getLifePayChannlesAllList(options?: RequestConfig) {
+  async getLifePayChannlesAllList(body: QueryLifePayChannlesInput, options?: RequestConfig) {
     return this.request<CreateEditPayChannelsInput[]>('/api/LifePay/GetLifePayChannlesAllList', {
-      method: 'GET',
+      method: 'POST',
+      headers: {
+        'Content-Type': 'application/json',
+      },
+      data: body,
       ...(options || {}),
     });
   }
@@ -374,6 +378,22 @@
         ...(options || {}),
       }
     );
+  }
+
+  /** 鑾峰彇椤堕儴缁熻鏁版嵁 GET /api/LifePay/GetTopStatistics */
+  async getTopStatistics(
+    // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+    body: TopStatisticsInput,
+    options?: RequestConfig
+  ) {
+    return this.request<TopStatisticsOutput>('/api/LifePay/GetTopStatistics', {
+      method: 'POST',
+      headers: {
+        'Content-Type': 'application/json',
+      },
+      data: body,
+      ...(options || {}),
+    });
   }
 }
 
@@ -833,6 +853,8 @@
 export interface ChannelOutput {
   name?: string;
   channlesNum?: string;
+  channlesId?: string;
+  switchType?: LifeRechargeConstants.LifePaySwitchTypeEnum;
 }
 
 export interface LifePayUserMesssageByIduserInput {
@@ -841,3 +863,36 @@
   /** 鐢ㄦ埛缂栧彿 */
   id?: string;
 }
+
+export interface TopStatisticsInput {
+  channleList?: string[];
+}
+
+export interface TopStatisticsOutput {
+  /** 鍒涘缓鏃堕棿 */
+  creationTime?: string;
+  /** 璐︽埛浣欓 */
+  amount?: number;
+  /** 绱鏀舵 */
+  accumulatedReceipts?: number;
+  /** 鏄ㄦ棩鏀舵 */
+  receiptsYesterday?: number;
+  /** 绱鏀跺叆 */
+  accumulatedIncome?: number;
+  /** 绱涓嬪崟 */
+  accumulatedOrders?: number;
+  /** 鏄ㄦ棩涓嬪崟 */
+  ordersNumYesterday?: number;
+  /** 鏄ㄦ棩鎴愬姛 */
+  yesterdaySuccess?: number;
+  /** 鏄ㄦ棩澶辫触 */
+  yesterdayFail?: number;
+  /** 绱鐢ㄦ埛 */
+  accumulatedUsers?: number;
+  /** 鏄ㄦ棩娲昏穬鐢ㄦ埛 */
+  yesterdayActiveUsers?: number;
+}
+
+export interface QueryLifePayChannlesInput {
+  status?: LifeRechargeConstants.LifePayChannelsStatsEnum;
+}

--
Gitblit v1.9.1