From 848b21bacd06c45ee16d8522acbce800df57b3a6 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期一, 31 三月 2025 18:32:50 +0800
Subject: [PATCH] fix: 四期需求

---
 packages/core/src/lifeRechargeServices.ts |  129 ++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 121 insertions(+), 8 deletions(-)

diff --git a/packages/core/src/lifeRechargeServices.ts b/packages/core/src/lifeRechargeServices.ts
index e8be114..b04c09d 100644
--- a/packages/core/src/lifeRechargeServices.ts
+++ b/packages/core/src/lifeRechargeServices.ts
@@ -42,14 +42,17 @@
   }
 
   async lifePayPhoneMesssageCodeLogin(body: PhoneMesssageCodeLoginInput, options?: RequestConfig) {
-    return this.request<string>('/api/Account/LifePayPhoneMesssageCodeLogin', {
-      method: 'POST',
-      headers: {
-        'Content-Type': 'application/json',
-      },
-      data: body,
-      ...(options || {}),
-    });
+    return this.request<LifePayPhoneMesssageCodeLoginOutput>(
+      '/api/Account/LifePayPhoneMesssageCodeLogin',
+      {
+        method: 'POST',
+        headers: {
+          'Content-Type': 'application/json',
+        },
+        data: body,
+        ...(options || {}),
+      }
+    );
   }
 
   /** 鑾峰彇鎶樻墸 GET /api/LifePay/GetRate */
@@ -338,6 +341,55 @@
       ...(options || {}),
     });
   }
+
+  /** 鑾峰彇鍦ㄧ嚎瀹㈡湇 GET /api/LifePay/GetOnlineService */
+  async getOnlineService(options?: RequestConfig) {
+    return this.request<string>('/api/LifePay/GetOnlineService', {
+      method: 'GET',
+      ...(options || {}),
+    });
+  }
+
+  /** 鑾峰彇鍏ㄩ儴缂磋垂娓犻亾 GET /api/LifePay/GetLifePayChannlesAllList */
+  async getLifePayChannlesAllList(options?: RequestConfig) {
+    return this.request<CreateEditPayChannelsInput[]>('/api/LifePay/GetLifePayChannlesAllList', {
+      method: 'GET',
+      ...(options || {}),
+    });
+  }
+
+  /** 鏍规嵁鐢ㄦ埛ID鑾峰彇鐢ㄦ埛鏄惁涓哄悗鍙扮鐞嗗憳 POST /api/Account/LifePayUserMesssageByIduser */
+  async lifePayUserMesssageByIduser(
+    body: LifePayUserMesssageByIduserInput,
+    options?: RequestConfig
+  ) {
+    return this.request<LifePayPhoneMesssageCodeLoginOutput>(
+      '/api/Account/LifePayUserMesssageByIduser',
+      {
+        method: 'POST',
+        headers: {
+          'Content-Type': 'application/json',
+        },
+        data: body,
+        ...(options || {}),
+      }
+    );
+  }
+
+  /** 鑾峰彇椤堕儴缁熻鏁版嵁 GET /api/LifePay/GetTopStatistics */
+  async getTopStatistics(
+    // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+    params: APIgetTopStatisticsParams,
+    options?: RequestConfig
+  ) {
+    return this.request<TopStatisticsOutput>('/api/LifePay/GetTopStatistics', {
+      method: 'GET',
+      params: {
+        ...params,
+      },
+      ...(options || {}),
+    });
+  }
 }
 
 export interface PhoneMesssageCodeLoginInput {
@@ -514,6 +566,8 @@
   creationTime?: string;
   /** 閫�娆炬椂闂� */
   refundTime?: string;
+  /** 閫�娆剧敵璇锋椂闂� */
+  refundApplyTime?: string;
   /** 閫�娆惧嚟璇� */
   refundCredentialsImgUrl?: string;
   refundApplyRemark?: string;
@@ -773,3 +827,62 @@
 export interface ChannelRateOutput {
   channlesRate?: number;
 }
+
+export interface CreateEditPayChannelsInput {
+  id?: string;
+  channlesName?: string;
+  channlesNum?: string;
+  channlesRate?: number;
+  channlesRakeRate?: number;
+}
+
+export interface LifePayPhoneMesssageCodeLoginOutput {
+  /** 鐢ㄦ埛Id */
+  userId?: string;
+  /** 鏄惁鏄悗鍙扮敤鎴� */
+  isBackClientUser?: boolean;
+  /** 娓犻亾鍙� */
+  channlesNum?: ChannelOutput[];
+}
+
+export interface ChannelOutput {
+  name?: string;
+  channlesNum?: string;
+  channlesId?: string;
+}
+
+export interface LifePayUserMesssageByIduserInput {
+  pageModel?: Pagination;
+  checkChannelId?: string;
+  /** 鐢ㄦ埛缂栧彿 */
+  id?: string;
+}
+
+export interface APIgetTopStatisticsParams {
+  channleId?: 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;
+}

--
Gitblit v1.9.1