|
@@ -170,6 +170,7 @@ type ActivityDetail struct {
|
|
ChartPermissionNameDeputy string `description:"副行业名称"`
|
|
ChartPermissionNameDeputy string `description:"副行业名称"`
|
|
BackgroundImg string `description:"封面图片"`
|
|
BackgroundImg string `description:"封面图片"`
|
|
ShareImg string `description:"分享图片"`
|
|
ShareImg string `description:"分享图片"`
|
|
|
|
+ TopTime int `description:"置顶时间"`
|
|
}
|
|
}
|
|
|
|
|
|
type ActivityDetailRep struct {
|
|
type ActivityDetailRep struct {
|
|
@@ -567,6 +568,7 @@ type CygxActivityList struct {
|
|
IsShowSigninButton bool `description:"是否展示签到码按钮"`
|
|
IsShowSigninButton bool `description:"是否展示签到码按钮"`
|
|
SigninImg string `description:"签到码图片"`
|
|
SigninImg string `description:"签到码图片"`
|
|
ChartPermissionNameDeputy string `description:"副行业名称"`
|
|
ChartPermissionNameDeputy string `description:"副行业名称"`
|
|
|
|
+ TopTime int `description:"置顶时间"`
|
|
}
|
|
}
|
|
|
|
|
|
type GetCygxActivityListRep struct {
|
|
type GetCygxActivityListRep struct {
|
|
@@ -704,3 +706,11 @@ type AliyunOcrTextActivityResp struct {
|
|
type AliyunOcrTextActivityListResp struct {
|
|
type AliyunOcrTextActivityListResp struct {
|
|
List []*AliyunOcrTextActivityResp
|
|
List []*AliyunOcrTextActivityResp
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+// 更新活动置顶时间
|
|
|
|
+func UpdateActivityTopTime(activityId, topTime int) (err error) {
|
|
|
|
+ o := orm.NewOrmUsingDB("hz_cygx")
|
|
|
|
+ sql := ` UPDATE cygx_activity SET top_time=? WHERE activity_id=?`
|
|
|
|
+ _, err = o.Raw(sql, topTime, activityId).Exec()
|
|
|
|
+ return
|
|
|
|
+}
|