From de906e51358b814f614fc1b0b595a298640c6e51 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期二, 10 六月 2025 09:22:16 +0800
Subject: [PATCH] fix: 修改CreateOrUpdatePromoter Output

---
 LifePayment/LifePayment.HttpApi/LifePay/PromoterController.cs |   28 +++++++++++++++++++++++++++-
 1 files changed, 27 insertions(+), 1 deletions(-)

diff --git a/LifePayment/LifePayment.HttpApi/LifePay/PromoterController.cs b/LifePayment/LifePayment.HttpApi/LifePay/PromoterController.cs
index becb882..51ac6dc 100644
--- a/LifePayment/LifePayment.HttpApi/LifePay/PromoterController.cs
+++ b/LifePayment/LifePayment.HttpApi/LifePay/PromoterController.cs
@@ -15,6 +15,7 @@
 using ZeroD.Util.Fadd;
 using Volo.Abp.Uow;
 using Nest;
+using Volo.Abp;
 
 namespace LifePayment.HttpApi
 {
@@ -44,6 +45,18 @@
         }
 
         /// <summary>
+        /// 鑾峰彇鎺ㄥ箍鍛樹俊鎭�
+        /// </summary>
+        /// <param name="phoneNumber"></param>
+        /// <returns></returns>
+        [HttpGet]
+        [AllowAnonymous]
+        public async Task<PromoterDto> GetPromoter(string phoneNumber)
+        {
+            return await promoterService.GetPromoter(phoneNumber);
+        }
+
+        /// <summary>
         /// 鑾峰彇娓犻亾鍜ㄨ鍒楄〃
         /// </summary>
         /// <param name="input"></param>
@@ -65,6 +78,19 @@
             return await promoterService.GetChannelConsultationFollowupList(id);
         }
 
+        /// <summary>
+        /// 鑾峰彇娓犻亾鍜ㄨId
+        /// </summary>
+        /// <param name="id"></param>
+        /// <returns></returns>
+        /// <exception cref="FriendlyException"></exception>
+        [HttpGet]
+        [AllowAnonymous]
+        public async Task<ChannelConsultationDto> GetChannelConsultationById(Guid id)
+        {
+            return await promoterService.GetChannelConsultationById(id);
+        }
+
         #endregion
 
         #region 鍐欏叆
@@ -77,7 +103,7 @@
         /// <exception cref="FormatException"></exception>
         [HttpPost]
         [AllowAnonymous]
-        public async Task<Guid> CreateOrUpdatePromoter(CreateOrUpdatePromoterInput input)
+        public async Task<CreateOrUpdatePromoterOutput> CreateOrUpdatePromoter(CreateOrUpdatePromoterInput input)
         {
             return await promoterService.CreateOrUpdatePromoter(input);
         }

--
Gitblit v1.9.1