Merge pull request '1' (#774) from feat-IRONFANS-212-Robin into test

Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/774
This commit is contained in:
chenhao 2024-10-29 17:23:19 +08:00
commit bd60e02d8f
2 changed files with 16 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import (
"service/app/mix/service"
"service/bizcommon/util"
"service/library/logger"
"service/library/mediafiller"
"github.com/gin-gonic/gin"
)
@ -26,6 +27,13 @@ func ApiGetNotificationListByMid(ctx *gin.Context) {
return
}
//填充媒体切片
mediaFillableList := make([]mediafiller.MediaFillable, len(list))
for i, media := range list {
mediaFillableList[i] = media.Thumbnail
}
mediafiller.FillList(ctx, mediaFillableList)
data := &notificationproto.ApiListByMidData{
List: list,
Offset: req.Offset + len(list),

View File

@ -7,6 +7,7 @@ import (
"service/app/mix/service"
"service/bizcommon/util"
"service/library/logger"
"service/library/mediafiller"
"github.com/gin-gonic/gin"
)
@ -62,6 +63,13 @@ func OpGetNotificationList(ctx *gin.Context) {
return
}
//填充媒体切片
mediaFillableList := make([]mediafiller.MediaFillable, len(list))
for i, media := range list {
mediaFillableList[i] = media.Thumbnail
}
mediafiller.FillList(ctx, mediaFillableList)
data := &notificationproto.OpListData{
List: list,
Offset: req.Offset + len(list),