From 17336d42e38798b0289029e84271d1433ea21080 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期一, 09 六月 2025 14:26:40 +0800 Subject: [PATCH] feat: 接口 --- packages/core/src/lifeRechargeServices.ts | 74 +++++++++++++++++++++++++++++++++++++ 1 files changed, 74 insertions(+), 0 deletions(-) diff --git a/packages/core/src/lifeRechargeServices.ts b/packages/core/src/lifeRechargeServices.ts index b66a533..4d2cb05 100644 --- a/packages/core/src/lifeRechargeServices.ts +++ b/packages/core/src/lifeRechargeServices.ts @@ -395,6 +395,45 @@ ...(options || {}), }); } + + /** 鐐瑰嚮鏁�+1 POST /api/Promoter/SetClickCount */ + async setClickCount( + // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄) + params: APIsetClickCountParams, + options?: RequestConfig + ) { + return this.request<any>('/api/Promoter/SetClickCount', { + method: 'POST', + params: { + ...params, + }, + ...(options || {}), + }); + } + + /** 鐢宠娓犻亾鍜ㄨ 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: API.CreateOrUpdatePromoterInput, options?: API.RequestConfig) { + return this.request<string>('/api/Promoter/CreateOrUpdatePromoter', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); + } } export interface PhoneMesssageCodeLoginInput { @@ -896,3 +935,38 @@ export interface QueryLifePayChannlesInput { status?: LifeRechargeConstants.LifePayChannelsStatsEnum; } + +export interface APIsetClickCountParams { + idnumber?: string; +} + +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; +} -- Gitblit v1.9.1