This commit is contained in:
parent
8fdac4d4f2
commit
79fde24cee
|
@ -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 := ¬ificationproto.ApiListByMidData{
|
||||
List: list,
|
||||
Offset: req.Offset + len(list),
|
||||
|
|
|
@ -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 := ¬ificationproto.OpListData{
|
||||
List: list,
|
||||
Offset: req.Offset + len(list),
|
||||
|
|
Loading…
Reference in New Issue