|
@@ -16,7 +16,6 @@ type Product struct {
|
|
Unit string `bson:"unit,omitempty" json:"unit"` // 型号
|
|
Unit string `bson:"unit,omitempty" json:"unit"` // 型号
|
|
Price float64 `bson:"price,omitempty" json:"price"`
|
|
Price float64 `bson:"price,omitempty" json:"price"`
|
|
Cover string `bson:"cover,omitempty" json:"cover"` // 封面图
|
|
Cover string `bson:"cover,omitempty" json:"cover"` // 封面图
|
|
- Colors []*ColorObj `bson:"colors,omitempty" json:"colors"`
|
|
|
|
Color []string `bson:"color,omitempty" json:"color"`
|
|
Color []string `bson:"color,omitempty" json:"color"`
|
|
Size []int `bson:"size,omitempty" json:"size"` // 尺寸
|
|
Size []int `bson:"size,omitempty" json:"size"` // 尺寸
|
|
Thumbnail []string `bson:"thumbnail,omitempty" json:"thumbnail"` // 缩略图集合
|
|
Thumbnail []string `bson:"thumbnail,omitempty" json:"thumbnail"` // 缩略图集合
|
|
@@ -25,9 +24,3 @@ type Product struct {
|
|
CreateTime time.Time `bson:"createTime,omitempty" json:"createTime"`
|
|
CreateTime time.Time `bson:"createTime,omitempty" json:"createTime"`
|
|
UpdateTime time.Time `bson:"updateTime,omitempty" json:"updateTime"`
|
|
UpdateTime time.Time `bson:"updateTime,omitempty" json:"updateTime"`
|
|
}
|
|
}
|
|
-
|
|
|
|
-type ColorObj struct {
|
|
|
|
- ColorStr string `bson:"colorStr,omitempty" json:"colorStr"`
|
|
|
|
- DevLink string `bson:"devLink,omitempty" json:"devLink"`
|
|
|
|
- ProdLink string `bson:"prodLink,omitempty" json:"prodLink"`
|
|
|
|
-}
|
|
|