From e25af6bdd67188d3049a3e4fca8f3c4e43281b27 Mon Sep 17 00:00:00 2001
From: chenzx <m15572880737@163.com>
Date: 星期三, 04 十二月 2024 18:53:53 +0800
Subject: [PATCH] czx20241204接口更新

---
 GasolineBlend/Controllers/ArticleDataController.cs |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 46 insertions(+), 0 deletions(-)

diff --git a/GasolineBlend/Controllers/ArticleDataController.cs b/GasolineBlend/Controllers/ArticleDataController.cs
index 2bf12c5..7d39ba3 100644
--- a/GasolineBlend/Controllers/ArticleDataController.cs
+++ b/GasolineBlend/Controllers/ArticleDataController.cs
@@ -99,6 +99,52 @@
 
         }
 
+
+        /// <summary>
+        ///鑾峰彇鍏抽敭璇嶅垪琛ㄦ暟鎹�
+        /// </summary>
+        /// <param name="Platform"></param>
+        /// <param name="ArticleType"></param>
+        /// <param name="Keyword"></param>
+        /// <param name="PageNumber"></param>
+        /// <param name="PageSize"></param>
+        /// <param name="UserId"></param>
+        /// <returns></returns>
+        [HttpPost]
+        public ActionResult GetArticleContentList(string Platform, string ArticleType, string Scope, string Keyword, int PageNumber, int PageSize, int UserId)
+        {
+            try
+            {
+                var list = _acc.GetArticleContentList(Platform, ArticleType, Scope, Keyword, PageNumber, PageSize, UserId);
+                var response = new
+                {
+                    Data = list.Data,
+                    TotalCount = list.TotalCount,
+                    TotalPages = list.TotalPages
+                };
+                if (!string.IsNullOrWhiteSpace(Keyword))
+                {
+                    if (UserId == 0)
+                    {
+                        UserId = -1;
+                    }
+                }
+
+
+                return SuccessNoShow(data: response);
+
+            }
+            catch (Exception e)
+            {
+                LogHelper.Write(Level.Error, "鑾峰彇鍏抽敭璇嶅垪琛ㄦ暟鎹� GetArticleContentList", e, OperatorProvider.Instance.Current == null ? "GuestEx" : OperatorProvider.Instance.Current.LoginName);
+                return Error();
+            }
+
+        }
+
+
+
+
         /// <summary>
         ///鑾峰彇甯傚尯鍒楄〃鏁版嵁
         /// </summary>

--
Gitblit v1.8.0