From 74953600e30027aa89aec6eeb939a182a2a7ecda Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 09 六月 2025 16:20:05 +0800
Subject: [PATCH] feat: 接口

---
 packages/core/src/lifeRechargeServices.ts |  115 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 115 insertions(+), 0 deletions(-)

diff --git a/packages/core/src/lifeRechargeServices.ts b/packages/core/src/lifeRechargeServices.ts
index 6762eea..89a7ee2 100644
--- a/packages/core/src/lifeRechargeServices.ts
+++ b/packages/core/src/lifeRechargeServices.ts
@@ -422,6 +422,48 @@
       ...(options || {}),
     });
   }
+
+  /** 鍒涘缓鎴栨洿鏂版帹骞垮憳 POST /api/Promoter/CreateOrUpdatePromoter */
+  async createOrUpdatePromoter(body: CreateOrUpdatePromoterInput, options?: RequestConfig) {
+    return this.request<string>('/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 || {}),
+    });
+  }
 }
 
 export interface PhoneMesssageCodeLoginInput {
@@ -945,3 +987,76 @@
   /** 瀹㈡埛璧勬簮 */
   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;
+}

--
Gitblit v1.9.1