public ActionResult <ReplyModel> Comments([FromBody] CommentsParam msg) { ReplyModel reply = new ReplyModel(); Expression <Func <Comment, bool> > func = w => w.ArticleId == msg.ArticleId; PageData <CommentDto> comments = CommentDto.GetList(_commentQuery, func, msg); if (comments.Data.Any()) { reply.Status = "002"; reply.Msg = "获取评论成功"; reply.Data = comments; } else { reply.Msg = "暂时没有评论呢"; } return(reply); }