Commit 260a37e3 by huangchengyi

1.0

parent 21d37cdf
......@@ -10,7 +10,7 @@ func main() {
//MouserGetData(MouserService)
dd := service.OutLink("LM358")
dd := service.OutLink("LM358","-1")
print("niin")
print(dd)
os.Exit(1)
......
......@@ -2,23 +2,22 @@ package model
//联营请求外链后格式化数据
type LyClearGoodsList struct {
GoodsName string `json:"goods_name"`
GoodsNameTemp string `json:"goods_name_temp"`
BrandName string `json:"brand_name"`
Desc string `json:"desc"`
GoodsSn string `json:"goods_sn"`
Docurl string `json:"docurl"`
Url string `json:"url"`
GoodsImg string `json:"goods_img"`
Cat string `json:"cat"`
RestrictionMessage string `json:"RestrictionMessage"`
increment int `json:"increment"`
SinglePrice float64 `json:"single_price"`
Tiered []*TierItem
GoodsName string `json:"goods_name"` //型号名称
BrandName string `json:"brand_name"` //品牌名称
Desc string `json:"desc"` //描述
GoodsSn string `json:"goods_sn"` //api唯一编码
Docurl string `json:"docurl"` //sku对应供应商的文档路径
Url string `json:"url"` //sku对应供应商的商品详情
GoodsImg string `json:"goods_img"` //sku图片
Cat string `json:"cat"` //分类
RestrictionMessage string `json:"RestrictionMessage"` //额外购买限制内容,如 ‘当前商品不在本地区销售’
increment int `json:"increment"` //最小包装量、倍数
SinglePrice float64 `json:"single_price"` //最小单价
Tiered []*TierItem //价格梯度数量
}
type TierItem struct {
Purchases int
PriceUs float64
PriceCn float64
Purchases int //购买数量
PriceUs 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