You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
2.3 KiB
40 lines
2.3 KiB
package common |
|
|
|
type ConfigPopUp struct { |
|
ID int `gorm:"primarykey"` |
|
// 弹窗开关 |
|
Switch int `gorm:"column:switch;type:int(11);default:0;comment:开关(1开2关)" json:"Switch" web:"switch"` |
|
// 渠道号列表 |
|
Channel string `gorm:"column:channel;type:varchar(258);default:'';comment:渠道号列表" json:"Channel" web:"channel"` |
|
ChannelIds []int `gorm:"-"` |
|
AllChannel bool `gorm:"-"` |
|
// 排序 |
|
Sort int `gorm:"column:sort;type:int(11);default:0;comment:排序" json:"Sort" web:"sort"` |
|
// 弹窗名称 |
|
PopName string `gorm:"column:pop_name;type:varchar(258);default:'';comment:弹窗名称" json:"PopName" web:"pop_name"` |
|
// 活动id |
|
Action int `gorm:"column:action;type:int(11);default:0;comment:跳转id" json:"Action" web:"action"` |
|
// 跳转链接 |
|
JumpUrl string `gorm:"column:jump_url;type:varchar(258);default:'';comment:跳转链接" json:"JumpUrl" web:"jump_url"` |
|
// 用户标签(0:全部用户,1:充值用户,2:充值区间用户) |
|
UserTag int `gorm:"column:user_tag;type:int(11);default:0;comment:用户标签" json:"UserTag" web:"user_tag"` |
|
// 用户标签值 |
|
UserTagValue string `gorm:"column:user_tag_value;type:varchar(258);default:'';comment:用户标签数据(根据UserTag去解)" json:"UserTagValue" web:"user_tag_value"` |
|
UserTagValueInt int `gorm:"-"` |
|
// 弹窗场景(1:登陆前,2:登陆后) |
|
PopScene int `gorm:"column:pop_scene;type:int(11);default:0;comment:弹窗场景(1:登陆前,2:登陆后)" json:"PopScene" web:"pop_scene"` |
|
// 弹窗规则(1:每日首次启动时,2:每次启动应用时,3:强制更新,4:每次返回游戏大厅) |
|
PopRule int `gorm:"column:pop_rule;type:int(11);default:0;comment:弹窗规则(1:每日首次启动时,2:每次启动应用时,3:强制更新,4:每次返回游戏大厅)" json:"PopRule" web:"pop_rule"` |
|
// 图片 |
|
ImageUrl string `gorm:"column:image_url;type:varchar(258);default:'';comment:图片链接" json:"ImageUrl" web:"image_url"` |
|
// 奖励[{"Type": 1001, "Value": 111100}] |
|
AwardInfo string `gorm:"column:award_info;type:varchar(1024);default:'';comment:奖励信息" json:"AwardInfo" web:"award_info"` |
|
AwardInfos []*CurrencyPair `gorm:"-"` |
|
// 文本 |
|
Content string `gorm:"column:content;type:varchar(1024);default:'';comment:文本" json:"Content" web:"content"` |
|
UpdatedBase |
|
} |
|
|
|
func (c *ConfigPopUp) TableName() string { |
|
return "config_pop_up" |
|
}
|
|
|