Beispiel #1
0
        /// <summary>
        /// 获取文章列表
        /// </summary>
        /// <param name="page"></param>
        /// <param name="limit"></param>
        /// <param name="searchstr"></param>
        /// <returns></returns>
        public IActionResult GetBlogArticlelist(string page, string limit, string searchstr, int ladbleId)
        {
            var messageModel = _blogArticleBLL
                               .GetBlogArticlelist(page, limit, searchstr, ladbleId);

            return(Ok(new
            {
                code = 0,
                msg = "获取成功",
                count = messageModel.Data.RowCount,
                data = messageModel.Data.Data
            }));
        }
Beispiel #2
0
 public IActionResult GetArticles(string page, string limit, string searchstr, int lableId)
 {
     return(Ok(new ResponseModel {
         Data = _blogArticleBLL.GetBlogArticlelist(page, limit, searchstr, lableId).Data
     }));
 }