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.4 KiB

package promotion
import (
"github.com/golangkit/formatime"
"time"
)
type Goods struct {
ID uint `gorm:"column:id;primary_key" json:"id,omitempty"`
PromotionTimeItemID uint `gorm:"column:promotion_time_item_id" json:"-"`
PromotionID uint `gorm:"column:promotion_id" json:"-"`
PromotionStartDate formatime.Date `gorm:"column:promotion_start_date" json:"-"`
PromotionName string `gorm:"column:promotion_name" json:"promotionName,omitempty"`
StartTime formatime.Second `gorm:"column:start_time" json:"startTime,omitempty"`
EndTime formatime.Second `gorm:"column:end_time" json:"endTime,omitempty"`
GoodsID uint `gorm:"column:goods_id" json:"goodsId"`
ActivityID uint `gorm:"column:activity_id" json:"activityId"`
Subtitle string `gorm:"column:subtitle" json:"subtitle"`
TotalInventory uint `gorm:"column:total_inventory" json:"totalInventory,omitempty"`
DeletedAt *time.Time `gorm:"column:deleted_at" json:"-"`
Order int `gorm:"column:order" json:"order"`
ActivitySortId uint `gorm:"column:activity_sort_id" json:"activity_sort_id"` //活动展示位置
}
// TableName sets the insert table name for this struct type
func (r *Goods) TableName() string {
return "recook_promotion_goods"
}