作者 tangxvhui

调整查询 文章评论列表

... ... @@ -37,10 +37,12 @@ func (l *MiniListArticleCommentLogic) MiniListArticleComment(req *types.MiniList
WithOffsetLimit(req.Page, req.Size).
MustWithKV("topId", 0).
MustWithKV("articleId", req.ArticleId).
MustWithKV("sectionId", req.SectionId).
MustWithKV("show", domain.CommentShowEnable).
MustWithKV("show", int(domain.CommentShowEnable)).
MustWithKV("companyId", req.CompanyId)
if req.SectionId > 0 {
//专门获取段落评论
queryOption.MustWithKV("sectionId", req.SectionId)
}
cnt, commentList, err := l.svcCtx.ArticleCommentRepository.Find(l.ctx, conn, queryOption)
if err != nil {
return nil, xerr.NewErrMsgErr("获取评论信息失败", err)
... ...