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.
24 lines
1.1 KiB
24 lines
1.1 KiB
package rotation
|
|
|
|
import "github.com/golangkit/formatime"
|
|
|
|
type RecookRotationModel struct {
|
|
ID uint `gorm:"column:id;primary_key" json:"id"`
|
|
GoodsID uint `gorm:"column:goods_id" json:"goodsId"`
|
|
URL string `gorm:"column:url" json:"url"`
|
|
CreatedAt formatime.Second `gorm:"column:created_at" json:"createdAt"`
|
|
ActiveID uint `gorm:"column:activity_id" json:"activityId"`
|
|
Color string `gorm:"column:color" json:"color"`
|
|
IsActive int8 `gorm:"column:is_active" json:"is_active"`
|
|
BackgroundColor string `gorm:"column:background_color" json:"background_color"`
|
|
StartTime formatime.Second `gorm:"column:start_time" json:"start_time"`
|
|
EndTime formatime.Second `gorm:"column:end_time" json:"end_time"`
|
|
SortId uint `gorm:"column:sort_id" json:"sort_id"`
|
|
IsSale bool `json:"is_sale" gorm:"column:is_sale"`
|
|
}
|
|
|
|
// TableName sets the insert table name for this struct type
|
|
func (r *RecookRotationModel) TableName() string {
|
|
return "recook_diamond_show_info"
|
|
}
|