package task import "time" type GameRetainedData struct { Id uint `json:"id" gorm:"primarykey"` CreatedAt time.Time UpdatedAt time.Time NewDate string `json:"new_date" gorm:"comment:留存日期"` Duration int `json:"duration" gorm:"comment:几留"` Total int `json:"total" gorm:"comment:账号个数"` GameId int `json:"game_id"` //游戏id RetainedDate time.Time `json:"retained_date" gorm:"type:date;comment:账号个数"` } func (GameRetainedData) TableName() string { return "game_retained_data" }