Browse Source

delete colors

animeic 2 years ago
parent
commit
4f7ab1c0fe
2 changed files with 1 additions and 8 deletions
  1. 1 1
      3dshow-supplier/app.yaml
  2. 0 7
      3dshow-supplier/db/model/product.go

+ 1 - 1
3dshow-supplier/app.yaml

@@ -28,4 +28,4 @@ obs:
   bucket: show3d
   bucket: show3d
   accessKeyId: "RA1D7CFVCVKUFX1FHHPB"
   accessKeyId: "RA1D7CFVCVKUFX1FHHPB"
   secrateKey: "cDrR2NgAF2KaA4MRkcK19r93P3P6hLKOPhHvPu9p"
   secrateKey: "cDrR2NgAF2KaA4MRkcK19r93P3P6hLKOPhHvPu9p"
-  endpoint: "show3d.obs.cn-east-3.myhuaweicloud.com"
+  endpoint: "obs.cn-east-3.myhuaweicloud.com"

+ 0 - 7
3dshow-supplier/db/model/product.go

@@ -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"`
-}