Explorar el Código

clear old color

animeic hace 2 años
padre
commit
8fa01d9ac0

+ 0 - 1
3dshow-supplier/api/product.go

@@ -14,7 +14,6 @@ import (
 
 // 产品管理
 func Product(r *GinRouter) {
-	// ??? supplier apis
 	r.POSTJWT("/product/create", ProductAdd)
 	r.POSTJWT("/product/update", ProductUpdate)
 	r.GETJWT("/product/list", ProductList)

+ 12 - 12
3dshow-supplier/db/model/json/address.json

@@ -1,12 +1,12 @@
-{
-    "_id": "636b4dddb45f0238b7d0da50",
-    "userId": "6305c3ddd5d78dbcb70b7f70",
-    "province": "四川省",
-    "city": "成都市",
-    "area": "高新区",
-    "addr": "火车南站西路486号",
-    "contact": "刘先生",
-    "phone": "13586882266",
-    "defualt": 1,
-    "createTime": "2022-11-09T06:51:09.167Z"
-}
+[
+  {
+    "colorStr": "黑色",
+    "devLink": "6305c3ddd5d78dbcb70b7f70",
+    "prodLink": "http://www.xxx.com"
+  },
+  {
+    "colorStr": "黑色",
+    "devLink": "6305c3ddd5d78dbcb70b7f70",
+    "prodLink": "http://www.xxx.com"
+  }
+]

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

@@ -12,12 +12,10 @@ type Product struct {
 	SupplyId   primitive.ObjectID `bson:"supplyId,omitempty" json:"supplyId"`
 	SenceId    primitive.ObjectID `bson:"senceId,omitempty" json:"senceId"` // 场景id,3d展示
 	Name       string             `bson:"name,omitempty" json:"name"`
-	Link       string             `bson:"link,omitempty" json:"link"`
 	Type       string             `bson:"type,omitempty" json:"type"` // 类型 单鞋:shoes 凉鞋:sandals 靴子:boots
 	Unit       string             `bson:"unit,omitempty" json:"unit"` // 型号
 	Price      float64            `bson:"price,omitempty" json:"price"`
 	Cover      string             `bson:"cover,omitempty" json:"cover"` // 封面图
-	Color      []string           `bson:"color,omitempty" json:"color"` // todo old
 	Colors     []*ColorObj        `bson:"colors,omitempty" json:"colors"`
 	Size       []int              `bson:"size,omitempty" json:"size"`                 // 尺寸
 	Thumbnail  []string           `bson:"thumbnail,omitempty" json:"thumbnail"`       // 缩略图集合