fix
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
// fs_product_recommend 推荐商品表
|
||||
type FsProductRecommend struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||
ProductId *int64 `gorm:"unique_key;default:0;" json:"product_id"` // 产品ID
|
||||
ProductId *int64 `gorm:"default:0;" json:"product_id"` // 产品ID
|
||||
Status *int64 `gorm:"default:1;" json:"status"` // 状态 1正常 0不正常
|
||||
Category *int64 `gorm:"default:1;" json:"category"` // 推荐类别1:详情推荐 2:列表页推荐
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
|
||||
@@ -8,6 +8,7 @@ import (
|
||||
type FsProductSize struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||
IsPopular *int64 `gorm:"default:0;" json:"is_popular"` // 是否受欢迎 0否1是
|
||||
Title *string `gorm:"default:'';" json:"title"` // 标题 10*10*20
|
||||
Cover *string `gorm:"default:'';" json:"cover"` //
|
||||
CoverImg *string `gorm:"default:'';" json:"cover_img"` //
|
||||
|
||||
Reference in New Issue
Block a user