From 72ed026e6dc651e7bd1f77f41face93a7a9f49cb Mon Sep 17 00:00:00 2001
From: zhengyuxuan <zhengyuxuan1995>
Date: 星期四, 27 三月 2025 08:58:34 +0800
Subject: [PATCH] fix:新增在线客服配置、户号编辑功能优化、用户列表更新

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

diff --git a/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs b/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs
index ce05b3d..08f7441 100644
--- a/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs
+++ b/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs
@@ -1,4 +1,5 @@
 锘縰sing LifePayment.Application.Contracts;
+using LifePayment.Domain.Common;
 using LifePayment.Domain.Shared;
 using Microsoft.AspNetCore.Authorization;
 using Microsoft.AspNetCore.Mvc;
@@ -22,17 +23,20 @@
         private readonly ILifePayService _lifePayService;
         private readonly IStatisticsService _statisticsService;
         private readonly IWebClientInfoProvider _webClientInfoProvider;
+        private readonly ICommonService _commonService;
         private readonly ILogger<LifePayController> _logger;
         public LifePayController(
               ILifePayService lifePayService,
               IStatisticsService statisticsService,
-              IWebClientInfoProvider webClientInfoProvider
+              IWebClientInfoProvider webClientInfoProvider,
+              ICommonService commonService
             , ILogger<LifePayController> logger
               )
         {
             _lifePayService = lifePayService;
             _statisticsService = statisticsService;
             _webClientInfoProvider = webClientInfoProvider;
+            _commonService = commonService;
             _logger = logger;
         }
 
@@ -182,6 +186,16 @@
             return await _lifePayService.GetIntroInfo(type);
         }
 
+        /// <summary>
+        /// 鑾峰彇鍦ㄧ嚎瀹㈡湇
+        /// </summary>
+        /// <returns></returns>
+        [HttpGet]
+        [AllowAnonymous]
+        public async Task<string> GetOnlineService()
+        {
+            return await _commonService.GetOnlineService();
+        }
 
         /// <summary>
         /// 鑾峰彇鐢ㄦ埛鍒嗛〉鏁版嵁
@@ -596,6 +610,19 @@
         }
 
         /// <summary>
+        /// 鍦ㄧ嚎瀹㈡湇閰嶇疆
+        /// </summary>
+        /// <param name="input"></param>
+        /// <returns></returns>
+        [HttpPost]
+        public async Task<int> UpdateOnlineService(OnlineServiceInput input)
+        {
+            await _commonService.UpdateOnlineService(input);
+            return Constant.SUCCESS;
+        }
+
+
+        /// <summary>
         /// 璁剧疆鐢熸椿缂磋垂鏀粯绫诲瀷
         /// </summary>
         /// <param name="input"></param>

--
Gitblit v1.9.1