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.
15 lines
493 B
15 lines
493 B
package goods
|
|
|
|
type PromotionPhoto struct {
|
|
ID uint `gorm:"column:id;primary_key" json:"id,omitempty"`
|
|
GoodsID uint `gorm:"column:goods_id" json:"-"`
|
|
URL string `gorm:"column:url" json:"url,omitempty"`
|
|
Width uint `gorm:"column:width" json:"width,omitempty"`
|
|
Height uint `gorm:"column:height" json:"height,omitempty"`
|
|
}
|
|
|
|
// TableName sets the insert table name for this struct type
|
|
func (r *PromotionPhoto) TableName() string {
|
|
return "recook_goods_promotion_photo"
|
|
}
|