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.

19 lines
823 B

package goods
import "github.com/golangkit/formatime"
type HotSellRankings struct {
ID uint `gorm:"column:id;primary_key" json:"id,omitempty"`
GoodsId uint `gorm:"column:goods_id" json:"goods_id"`
FirstCategoryID uint `gorm:"column:first_category_id" json:"firstCategoryId,omitempty"`
SecondCategoryID uint `gorm:"column:second_category_id" json:"secondCategoryId,omitempty"`
Sales uint `gorm:"column:sales" json:"sales"`
Clicks uint `gorm:"column:clicks" json:"clicks"`
Date formatime.Date `gorm:"column:date" json:"-"`
CreatedAt formatime.Second `gorm:"column:created_at" json:"-"`
}
func (*HotSellRankings) TableName() string {
return "recook_goods_hot_sell_rankings"
}