|
@@ -36,17 +36,18 @@ func GetVideoList(pageIndex, pageSize, videoId, varietyTagId int, keywords strin
|
|
|
}
|
|
|
for _, v := range list {
|
|
|
item := &response.CommunityVideoItem{
|
|
|
- CommunityVideoID: v.CommunityVideoID,
|
|
|
- Title: v.Title,
|
|
|
- VarietyTagId: v.VarietyTagId,
|
|
|
- VarietyTagName: v.VarietyTagName,
|
|
|
- CoverImgUrl: v.CoverImgURL,
|
|
|
- VideoUrl: v.VideoURL,
|
|
|
- VideoSeconds: v.VideoSeconds,
|
|
|
- PublishState: v.PublishState,
|
|
|
- PublishTime: v.PublishTime.Format(utils.FormatDateTime),
|
|
|
- CreateTime: v.CreateTime.Format(utils.FormatDateTime),
|
|
|
- ModifyTime: v.ModifyTime.Format(utils.FormatDateTime),
|
|
|
+ CommunityVideoID: v.CommunityVideoID,
|
|
|
+ Title: v.Title,
|
|
|
+ VarietyTagId: v.VarietyTagId,
|
|
|
+ VarietyTagName: v.VarietyTagName,
|
|
|
+ CoverImgUrl: v.CoverImgURL,
|
|
|
+ VideoUrl: v.VideoURL,
|
|
|
+ VideoSeconds: v.VideoSeconds,
|
|
|
+ PublishState: v.PublishState,
|
|
|
+ PublishTime: v.PublishTime.Format(utils.FormatDateTime),
|
|
|
+ CreateTime: v.CreateTime.Format(utils.FormatDateTime),
|
|
|
+ ModifyTime: v.ModifyTime.Format(utils.FormatDateTime),
|
|
|
+ ChartPermissionName: v.VarietyTagName,
|
|
|
}
|
|
|
resp = append(resp, item)
|
|
|
}
|