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.
29 lines
1.3 KiB
29 lines
1.3 KiB
package activity
|
|
|
|
func (Activity) TableName() string {
|
|
return "activity"
|
|
}
|
|
|
|
type Activity struct {
|
|
ID int `json:"id"` // 活动ID
|
|
Title string `json:"title"` // 活动标题
|
|
Type string `json:"type"` // 活动类型
|
|
RichtextID int `json:"richtext_id"` // 富文本ID
|
|
RichtextTitle string `json:"richtext_title"` // 富文本标题
|
|
StartTime int64 `json:"starttime"` // 活动开始时间
|
|
EndTime int64 `json:"endtime"` // 活动结束时间
|
|
Rules Rules `json:"rules" ` // 活动规则
|
|
StatusCode string `json:"status_code"` // 活动状态码
|
|
}
|
|
type Rules struct {
|
|
ActivityAutoClose string `json:"activity_auto_close"` // 活动自动关闭
|
|
FictitiousNum string `json:"fictitious_num"` // 虚拟号码
|
|
IsAlone string `json:"is_alone"` // 是否单独
|
|
IsFictitious string `json:"is_fictitious"` // 是否虚拟
|
|
LimitBuy string `json:"limit_buy"` // 限购
|
|
OrderAutoClose string `json:"order_auto_close"` // 订单自动关闭
|
|
TeamCard string `json:"team_card"` // 团购卡
|
|
TeamNum string `json:"team_num"` // 团购人数
|
|
ValidTime string `json:"valid_time"` // 有效时间
|
|
}
|