chenzx
2024-12-04 e25af6bdd67188d3049a3e4fca8f3c4e43281b27
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>