From 2c4474b33be9a9a5a045616c41e2b0074f6d8d4a Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期二, 10 六月 2025 09:20:34 +0800 Subject: [PATCH] fix: v1.4 --- packages/core/src/lifeRechargeServices.ts | 149 ++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 139 insertions(+), 10 deletions(-) diff --git a/packages/core/src/lifeRechargeServices.ts b/packages/core/src/lifeRechargeServices.ts index 39398ad..df6f873 100644 --- a/packages/core/src/lifeRechargeServices.ts +++ b/packages/core/src/lifeRechargeServices.ts @@ -411,17 +411,56 @@ }); } - /** 鏂板鍥炶 POST /api/Promoter/CreateChannelConsultationFollowup */ - async createChannelConsultationFollowup( - body: CreateChannelConsultationFollowupInput, - options?: RequestConfig - ) { - return this.request<string>('/api/Promoter/CreateChannelConsultationFollowup', { + /** 鐢宠娓犻亾鍜ㄨ POST /api/Promoter/CreateChannelConsultation */ + async createChannelConsultation(body: CreateChannelConsultationInput, options?: RequestConfig) { + return this.request<string>('/api/Promoter/CreateChannelConsultation', { method: 'POST', headers: { 'Content-Type': 'application/json', }, data: body, + ...(options || {}), + }); + } + + /** 鍒涘缓鎴栨洿鏂版帹骞垮憳 POST /api/Promoter/CreateOrUpdatePromoter */ + async createOrUpdatePromoter(body: CreateOrUpdatePromoterInput, options?: RequestConfig) { + return this.request<CreateOrUpdatePromoterOutput>('/api/Promoter/CreateOrUpdatePromoter', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); + } + + /** 鑾峰彇娓犻亾鍜ㄨId GET /api/Promoter/GetChannelConsultationById */ + async getChannelConsultationById( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: APIgetChannelConsultationByIdParams, + options?: RequestConfig + ) { + return this.request<ChannelConsultationDto>('/api/Promoter/GetChannelConsultationById', { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + }); + } + + /** 鑾峰彇鎺ㄥ箍鍛樹俊鎭� GET /api/Promoter/GetPromoter */ + async getPromoter( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: APIgetPromoterParams, + options?: RequestConfig + ) { + return this.request<PromoterDto>('/api/Promoter/GetPromoter', { + method: 'GET', + params: { + ...params, + }, ...(options || {}), }); } @@ -874,6 +913,8 @@ export interface LifePayPhoneMesssageCodeLoginOutput { /** 鐢ㄦ埛Id */ userId?: string; + /** 鎺ㄥ箍鍛業D */ + promoterIdNumber?: string; /** 鏄惁鏄悗鍙扮敤鎴� */ isBackClientUser?: boolean; /** 娓犻亾鍙� */ @@ -931,10 +972,98 @@ idnumber?: string; } -export interface CreateChannelConsultationFollowupInput { - /** 娓犻亾鍜ㄨId */ - channelConsultationId?: string; - followupStatus?: LifeRechargeConstants.LifePayChannelConsultationFollowupStatus; +export interface CreateChannelConsultationInput { + /** 瀹㈡埛绔敤鎴稩d 濡傛湁 */ + userId?: string; + /** 鎺ㄥ箍浜篒d */ + idNumber?: string; + /** 鍜ㄨ浜� */ + name?: string; + agentType?: LifeRechargeConstants.LifePayChannelAgentType; + /** 鑱旂郴鏂瑰紡 */ + phoneNumber?: string; + /** 鍏徃鍚嶇О */ + companyName?: string; + /** 瀹㈡埛璧勬簮 */ + customerResources?: string; +} + +export interface CreateOrUpdatePromoterInput { + /** Id */ + id?: string; + /** 瀹㈡埛绔敤鎴稩d 濡傛湁 */ + userId?: string; + /** ID */ + idNumber?: string; + /** 鎺ㄥ箍鍛� */ + name?: string; + /** 鑱旂郴鏂瑰紡 */ + phoneNumber?: string; + /** 澶囨敞 */ + remark?: string; +} + +export interface APIgetChannelConsultationByIdParams { + id?: string; +} + +export type LifePayChannelAgentType = 1 | 2 | 3; + +export type LifePayChannelConsultationFollowupStatus = 1 | 2 | 3 | 4; + +export interface ChannelConsultationDto { + /** Id */ + id?: string; + /** 鍜ㄨ鏃堕棿 */ + creationTime?: string; + /** 鍜ㄨ浜� */ + name?: string; + agentType?: LifePayChannelAgentType; + /** 鑱旂郴鏂瑰紡 */ + phoneNumber?: string; + /** 鍏徃鍚嶇О */ + companyName?: string; + /** 瀹㈡埛璧勬簮 */ + customerResources?: string; + /** ID */ + promoterIdNumber?: string; + /** 鎺ㄥ箍鍛� */ + promoterName?: string; + /** 鑱旂郴鏂瑰紡 */ + promoterPhoneNumber?: string; + followupStatus?: LifePayChannelConsultationFollowupStatus; + /** 鏈�杩戝洖璁� */ + lastFollowupTime?: string; /** 鍥炶璁板綍 */ followupRemark?: string; } + +export interface APIgetPromoterParams { + phoneNumber?: string; +} + +export interface PromoterDto { + /** Id */ + id?: string; + /** 鍜ㄨ鏃堕棿 */ + creationTime?: string; + /** ID */ + idNumber?: string; + /** 鎺ㄥ箍鍛� */ + name?: string; + /** 鑱旂郴鏂瑰紡 */ + phoneNumber?: string; + /** 鐐瑰嚮鏁� */ + clickCount?: number; + /** 鐢宠鏁� */ + applyCount?: number; + /** 澶囨敞 */ + remark?: string; +} + +export interface CreateOrUpdatePromoterOutput { + /** Id */ + id?: string; + /** IdNumber */ + idNumber?: string; +} -- Gitblit v1.9.1