Merge pull request 'feat-IRONFANS-58-Robin' (#162) from feat-IRONFANS-58-Robin into test
Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/162
This commit is contained in:
commit
acd2370031
|
@ -223,6 +223,16 @@ func ApiGetStreamerRecommList(ctx *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
objectMediaNum := 4 // 单个主播服务总共4个媒体类
|
||||
mediaFillableList := make([]mediafiller.MediaFillable, len(list)*objectMediaNum)
|
||||
for i, vo := range list {
|
||||
mediaFillableList[objectMediaNum*i+0] = vo.Avatar
|
||||
mediaFillableList[objectMediaNum*i+1] = vo.Cover
|
||||
mediaFillableList[objectMediaNum*i+2] = vo.Shorts
|
||||
mediaFillableList[objectMediaNum*i+3] = vo.Album
|
||||
}
|
||||
mediafiller.FillList(ctx, mediaFillableList)
|
||||
|
||||
data := &streamerproto.ApiRecommListData{
|
||||
RecommList: list,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue