作者 yangfu

fix: 封面

@@ -109,6 +109,7 @@ func (l *SystemGetArticleLogic) SystemGetArticle(req *types.SystemArticleGetRequ @@ -109,6 +109,7 @@ func (l *SystemGetArticleLogic) SystemGetArticle(req *types.SystemArticleGetRequ
109 ParagraphType: item.ParagraphType, 109 ParagraphType: item.ParagraphType,
110 }) 110 })
111 }) 111 })
  112 + resp.Cover = article.GetCoverWithSections(articleSections)
112 userIds := lo.Union(resp.WhoRead, resp.WhoReview) 113 userIds := lo.Union(resp.WhoRead, resp.WhoReview)
113 if len(userIds) > 0 { 114 if len(userIds) > 0 {
114 _, users, err := l.svcCtx.UserRepository.Find(l.ctx, conn, domain.NewQueryOptions().WithKV("ids", userIds)) 115 _, users, err := l.svcCtx.UserRepository.Find(l.ctx, conn, domain.NewQueryOptions().WithKV("ids", userIds))