...
|
...
|
@@ -54,11 +54,6 @@ func (l *SystemSearchArticleLogic) SystemSearchArticle(req *types.SystemArticleS |
|
|
//获取标签
|
|
|
_, tags, _ := l.svcCtx.ArticleTagRepository.Find(l.ctx, conn, req.CompanyId, domain.NewQueryOptions())
|
|
|
lo.ForEach(articles, func(item *domain.Article, index int) {
|
|
|
//图片
|
|
|
images := make([]string, 0)
|
|
|
lo.ForEach(item.Images, func(img domain.Image, n int) {
|
|
|
images = append(images, img.Url)
|
|
|
})
|
|
|
//发布人
|
|
|
author := item.Author.Name
|
|
|
for _, user := range users {
|
...
|
...
|
@@ -80,7 +75,7 @@ func (l *SystemSearchArticleLogic) SystemSearchArticle(req *types.SystemArticleS |
|
|
Title: item.Title,
|
|
|
AuthorId: item.AuthorId,
|
|
|
Author: author,
|
|
|
Images: images,
|
|
|
Images: item.GetImages(),
|
|
|
CreatedAt: item.CreatedAt,
|
|
|
UpdatedAt: item.UpdatedAt,
|
|
|
CountLove: item.CountLove,
|
...
|
...
|
|