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:
commit
bd60e02d8f
|
@ -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