|
@@ -14,6 +14,8 @@ type CygxActivityVideo struct {
|
|
|
VideoDuration string `description:"视频时长"`
|
|
|
VideoCounts int `description:"播放量"`
|
|
|
VideoUrl string `description:"视频地址"`
|
|
|
+ BackgroundImg string `description:"封面图片"`
|
|
|
+ ShareImg string `description:"分享图片"`
|
|
|
CreateTime string `description:"创建时间"`
|
|
|
}
|
|
|
|
|
@@ -21,6 +23,8 @@ type CygxActivityVideoReq struct {
|
|
|
VideoName string `description:"视频名称"`
|
|
|
VideoDuration string `description:"视频时长"`
|
|
|
VideoUrl string `description:"视频地址"`
|
|
|
+ BackgroundImg string `description:"封面图片"`
|
|
|
+ ShareImg string `description:"分享图片"`
|
|
|
}
|
|
|
|
|
|
|
|
@@ -61,6 +65,8 @@ func UpdateCygxActivityVideo(item *CygxActivityVideo) (err error) {
|
|
|
updateParams["VideoName"] = item.VideoName
|
|
|
updateParams["VideoDuration"] = item.VideoDuration
|
|
|
updateParams["VideoUrl"] = item.VideoUrl
|
|
|
+ updateParams["BackgroundImg"] = item.BackgroundImg
|
|
|
+ updateParams["ShareImg"] = item.ShareImg
|
|
|
updateParams["ModifyDate"] = time.Now()
|
|
|
ptrStructOrTableName := "cygx_activity_video"
|
|
|
whereParam := map[string]interface{}{"activity_id": item.ActivityId}
|
|
@@ -149,6 +155,40 @@ func GetActivityVideoList(condition string, pars []interface{}) (items []*CygxAc
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+type MicroRoadShowDefaultImgList struct {
|
|
|
+ Audio []*MicroRoadShowDefaultImg `description:"音频"`
|
|
|
+ Video []*MicroRoadShowDefaultImg `description:"视频"`
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+type MicroRoadShowDefaultImg struct {
|
|
|
+ ChartPermissionId int `description:"行业ID"`
|
|
|
+ ChartPermissionName string `description:"行业名称"`
|
|
|
+ ImgUrl string `description:"背景图"`
|
|
|
+ ShareImg string `description:"分享图"`
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+type ActivityVideoDefaultImgList struct {
|
|
|
+ Audio []*ActivityVideoDefaultImg `description:"音频"`
|
|
|
+ Video []*ActivityVideoDefaultImg `description:"视频"`
|
|
|
+}
|
|
|
+
|
|
|
+type ActivityVideoDefaultImg struct {
|
|
|
+ ChartPermissionId int `description:"行业ID"`
|
|
|
+ List []*MicroRoadShowDefaultImg
|
|
|
+}
|
|
|
+
|
|
|
+type ActivityVideoDefaultImgListResp struct {
|
|
|
+ List []*MicroRoadShowDefaultImg
|
|
|
+}
|
|
|
+
|
|
|
+type ActivityVideoDefaultImgResp struct {
|
|
|
+ BackgroundImg string `description:"封面图片"`
|
|
|
+ ShareImg string `description:"分享图"`
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
func DeleteCygxActivityVideo(activityId int) (err error) {
|
|
|
o := orm.NewOrm()
|