|
@@ -44,6 +44,7 @@ type CygxActivityVideoListResp struct {
|
|
|
VideoCounts int `description:"播放量"`
|
|
|
VideoDuration string `description:"视频时长"`
|
|
|
CommentNum int `description:"留言总数"`
|
|
|
+ VideoUrl string `description:"视频地址"`
|
|
|
}
|
|
|
|
|
|
type CygxActivityVideoListRep struct {
|
|
@@ -196,3 +197,10 @@ func DeleteCygxActivityVideo(activityId int) (err error) {
|
|
|
_, err = o.Raw(sql, activityId).Exec()
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+func Updatevideo_url(video_url string, video_id int) (err error) {
|
|
|
+ sql := `UPDATE cygx_activity_video SET video_url =? WHERE video_id=? `
|
|
|
+ o := orm.NewOrmUsingDB("hz_cygx")
|
|
|
+ _, err = o.Raw(sql, video_url, video_id).Exec()
|
|
|
+ return
|
|
|
+}
|