Commit 260a37e3 by huangchengyi

1.0

parent 21d37cdf
...@@ -10,7 +10,7 @@ func main() { ...@@ -10,7 +10,7 @@ func main() {
//MouserGetData(MouserService) //MouserGetData(MouserService)
dd := service.OutLink("LM358") dd := service.OutLink("LM358","-1")
print("niin") print("niin")
print(dd) print(dd)
os.Exit(1) os.Exit(1)
......
...@@ -2,23 +2,22 @@ package model ...@@ -2,23 +2,22 @@ package model
//联营请求外链后格式化数据 //联营请求外链后格式化数据
type LyClearGoodsList struct { type LyClearGoodsList struct {
GoodsName string `json:"goods_name"` GoodsName string `json:"goods_name"` //型号名称
GoodsNameTemp string `json:"goods_name_temp"` BrandName string `json:"brand_name"` //品牌名称
BrandName string `json:"brand_name"` Desc string `json:"desc"` //描述
Desc string `json:"desc"` GoodsSn string `json:"goods_sn"` //api唯一编码
GoodsSn string `json:"goods_sn"` Docurl string `json:"docurl"` //sku对应供应商的文档路径
Docurl string `json:"docurl"` Url string `json:"url"` //sku对应供应商的商品详情
Url string `json:"url"` GoodsImg string `json:"goods_img"` //sku图片
GoodsImg string `json:"goods_img"` Cat string `json:"cat"` //分类
Cat string `json:"cat"` RestrictionMessage string `json:"RestrictionMessage"` //额外购买限制内容,如 ‘当前商品不在本地区销售’
RestrictionMessage string `json:"RestrictionMessage"` increment int `json:"increment"` //最小包装量、倍数
increment int `json:"increment"` SinglePrice float64 `json:"single_price"` //最小单价
SinglePrice float64 `json:"single_price"` Tiered []*TierItem //价格梯度数量
Tiered []*TierItem
} }
type TierItem struct { type TierItem struct {
Purchases int Purchases int //购买数量
PriceUs float64 PriceUs float64 //数量对应的英文价格
PriceCn float64 PriceCn float64 //数量对应的中文价格
} }
This diff could not be displayed because it is too large.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment