From 6ac59f6fa91e51272b8cd4797458995e168ec0f9 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期四, 11 九月 2025 09:13:08 +0800 Subject: [PATCH] feat: 公告 --- packages/core/src/lifeRechargeServices.ts | 83 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 82 insertions(+), 1 deletions(-) diff --git a/packages/core/src/lifeRechargeServices.ts b/packages/core/src/lifeRechargeServices.ts index 89a7ee2..9bfcac7 100644 --- a/packages/core/src/lifeRechargeServices.ts +++ b/packages/core/src/lifeRechargeServices.ts @@ -425,7 +425,7 @@ /** 鍒涘缓鎴栨洿鏂版帹骞垮憳 POST /api/Promoter/CreateOrUpdatePromoter */ async createOrUpdatePromoter(body: CreateOrUpdatePromoterInput, options?: RequestConfig) { - return this.request<string>('/api/Promoter/CreateOrUpdatePromoter', { + return this.request<CreateOrUpdatePromoterOutput>('/api/Promoter/CreateOrUpdatePromoter', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -463,6 +463,39 @@ }, ...(options || {}), }); + } + + /** 鑾峰彇褰撳墠灞曠ず涓殑鍏憡 POST /api/LifePayAnnouncement/GetShowingLifePayAnnouncement */ + async getShowingLifePayAnnouncement( + body: GetShowingLifePayAnnouncementInput, + options?: RequestConfig + ) { + return this.request<CreateEditLifePayAnnouncementOutput>( + '/api/LifePayAnnouncement/GetShowingLifePayAnnouncement', + { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + } + ); + } + + /** 鑾峰彇鎶樻墸閫氶亾閰嶇疆鍒楄〃 POST /api/LifePayRate/GetLifePayRateChannelAllList */ + async getLifePayRateChannelAllList(body: QueryRateChannelInput, options?: RequestConfig) { + return this.request<CreateEditRateChannelOutput[]>( + '/api/LifePayRate/GetLifePayRateChannelAllList', + { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + } + ); } } @@ -962,6 +995,8 @@ accumulatedUsers?: number; /** 鏄ㄦ棩娲昏穬鐢ㄦ埛 */ yesterdayActiveUsers?: number; + /** 绱浣i噾 */ + accumulatedChannlesRakePrice?: number; } export interface QueryLifePayChannlesInput { @@ -1060,3 +1095,49 @@ /** 澶囨敞 */ remark?: string; } + +export interface CreateOrUpdatePromoterOutput { + /** Id */ + id?: string; + /** IdNumber */ + idNumber?: string; +} + +export interface GetShowingLifePayAnnouncementInput { + announcementType?: LifeRechargeConstants.AnnouncementTypeEnum; +} + +export interface CreateEditLifePayAnnouncementOutput { + id?: string; + announcementType: LifeRechargeConstants.AnnouncementTypeEnum; + /** 鐢熸晥鏃ユ湡 */ + startTime: string; + /** 鎴鏃ユ湡 */ + endTime: string; + /** 鍏憡鍐呭 */ + announcementContent: string; + creationTime?: string; + status?: LifeRechargeConstants.AnnouncementStatusEnum; +} + +export interface QueryRateChannelInput { + status?: LifeRechargeConstants.LifePayRateChannelStatus; + lifePayOrderType?: LifeRechargeConstants.LifePayOrderTypeEnum; +} + +export interface CreateEditRateChannelOutput { + id?: string; + lifePayOrderType: LifeRechargeConstants.LifePayOrderTypeEnum; + /** 閫氶亾 */ + rateChannelName: string; + /** ID */ + code: string; + /** 渚涘簲鍟嗘姌鎵� */ + supplierRate: number; + /** 骞冲彴鎶樻墸 */ + platformRate: number; + status: LifeRechargeConstants.LifePayRateChannelStatus; + /** 閫氱煡鍐呭 */ + remark: string; + creationTime?: string; +} -- Gitblit v1.9.1