|
|
|
@ -85,6 +85,14 @@ func (t *Trend) GetList(loginUserId, userId uint, page lib.Page) *recook.TrendLi
|
|
|
|
|
trendInfo.TopicName = topicMap[shortItem.TopicId].Title
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//根据需求,返回视频的状态,风险或安全,审核中或审核失败通过
|
|
|
|
|
for i, k := range list.List {
|
|
|
|
|
var a short.Short
|
|
|
|
|
(&short.Short{}).GetDb().Where("id=?", k.OriginID).First(&a)
|
|
|
|
|
list.List[i].Compliance = a.Compliance
|
|
|
|
|
list.List[i].PassStatus = a.Pass
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return list
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|