From 8bb9173a95a87e3ceab4f48b5b34041af38b7c70 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期五, 28 三月 2025 15:23:14 +0800 Subject: [PATCH] fix: 四期需求 --- packages/core/src/lifeRechargeServices.ts | 82 +++++++++++++++++++++++++++++++++++++---- 1 files changed, 74 insertions(+), 8 deletions(-) diff --git a/packages/core/src/lifeRechargeServices.ts b/packages/core/src/lifeRechargeServices.ts index 279dce2..1bfa225 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 */ @@ -337,6 +340,40 @@ data: body, ...(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 || {}), + } + ); } } @@ -775,3 +812,32 @@ 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; +} + +export interface LifePayUserMesssageByIduserInput { + pageModel?: Pagination; + checkChannelId?: string; + /** 鐢ㄦ埛缂栧彿 */ + id?: string; +} -- Gitblit v1.9.1