|
@@ -17,7 +17,8 @@ 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"` // 封面图
|
|
- Color []*ColorObj `bson:"color,omitempty" json:"color"`
|
|
|
|
|
|
+ Color []string `bson:"color,omitempty" json:"color"` // todo old
|
|
|
|
+ Colors []*ColorObj `bson:"colors,omitempty" json:"colors"`
|
|
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"` // 缩略图集合
|
|
Status int `bson:"status,omitempty" json:"status"` // -1:下架 1:上架
|
|
Status int `bson:"status,omitempty" json:"status"` // -1:下架 1:上架
|