提交 e3b1b968 authored 作者: 屈传平's avatar 屈传平

hdh

上级 10772b6d
...@@ -32,13 +32,13 @@ type ItemLimitCondition struct { ...@@ -32,13 +32,13 @@ type ItemLimitCondition struct {
CycleLimitTime int `json:"cycleLimitTime"` //周期限购时间(默认单位:日) CycleLimitTime int `json:"cycleLimitTime"` //周期限购时间(默认单位:日)
} }
type SkuChannels struct { type SkuChannels struct {
ChannelName string `json:"channelName"` //渠道名称 ChannelName string `json:"channelName"` //渠道名称
ChannelType string `json:"channelType"` //渠道类型 ChannelType string `json:"channelType"` //渠道类型
ItemCode string `json:"itemCode"` //商品编码 如果系统需要在会订货系统导入 ItemCode string `json:"itemCode"` //商品编码 如果系统需要在会订货系统导入
OriginalPrice int `json:"originalPrice"` //原价 OriginalPrice int `json:"originalPrice"` //原价
Price int `json:"price"` //现价 Price float64 `json:"price"` //现价
SalesStatus int `json:"salesStatus"` //商品销售状态(0为不可售 1可售) SalesStatus float64 `json:"salesStatus"` //商品销售状态(0为不可售 1可售)
Stock int `json:"stock"` //当前渠道商品的库存数 Stock int `json:"stock"` //当前渠道商品的库存数
} }
type SkuValues struct { type SkuValues struct {
SkuName string `json:"skuName"` //规格名 SkuName string `json:"skuName"` //规格名
...@@ -101,13 +101,13 @@ type GoodsListRes struct { ...@@ -101,13 +101,13 @@ type GoodsListRes struct {
SkuList []struct { SkuList []struct {
ItemID string `json:"itemId"` //商品id 与上面的商品id一致 ItemID string `json:"itemId"` //商品id 与上面的商品id一致
SkuChannels []struct { SkuChannels []struct {
ChannelName string `json:"channelName"` //渠道名称 ChannelName string `json:"channelName"` //渠道名称
ChannelType string `json:"channelType"` //渠道类型 ChannelType string `json:"channelType"` //渠道类型
ItemCode string `json:"itemCode"` //商品编码 如果系统需要在会订货系统导入订单 需要使用到 ItemCode string `json:"itemCode"` //商品编码 如果系统需要在会订货系统导入订单 需要使用到
OriginalPrice int `json:"originalPrice"` //原价(建议零售价) OriginalPrice float64 `json:"originalPrice"` //原价(建议零售价)
Price int `json:"price"` //现价(实际采购价) Price float64 `json:"price"` //现价(实际采购价)
SalesStatus int `json:"salesStatus"` //商品销售状态(0为不可售 1可售) SalesStatus int `json:"salesStatus"` //商品销售状态(0为不可售 1可售)
Stock int `json:"stock"` //当前渠道商品的库存数 Stock int `json:"stock"` //当前渠道商品的库存数
} `json:"skuChannels"` //对应渠道信息 } `json:"skuChannels"` //对应渠道信息
SkuID string `json:"skuId"` //规格id SkuID string `json:"skuId"` //规格id
SkuValues []struct { SkuValues []struct {
...@@ -120,7 +120,7 @@ type GoodsListRes struct { ...@@ -120,7 +120,7 @@ type GoodsListRes struct {
UnitQuantity int `json:"unitQuantity"` //单位对应的数量 与单位共用 如:1件、1组、1盒、1支 UnitQuantity int `json:"unitQuantity"` //单位对应的数量 与单位共用 如:1件、1组、1盒、1支
Upc string `json:"upc"` // Upc string `json:"upc"` //
Weight float64 `json:"weight"` //重量 Weight float64 `json:"weight"` //重量
WeightG int `json:"weightG"` // WeightG float64 `json:"weightG"` //
} `json:"skuList"` //商品规格信息 } `json:"skuList"` //商品规格信息
SkuNameValues []struct { SkuNameValues []struct {
SkuName string `json:"skuName"` //规格名称 SkuName string `json:"skuName"` //规格名称
...@@ -168,13 +168,13 @@ type GoodsInfoRes struct { ...@@ -168,13 +168,13 @@ type GoodsInfoRes struct {
SkuList []struct { SkuList []struct {
ItemID string `json:"itemId"` //商品id 与上面的商品id一致 ItemID string `json:"itemId"` //商品id 与上面的商品id一致
SkuChannels []struct { SkuChannels []struct {
ChannelName string `json:"channelName"` //渠道名称 ChannelName string `json:"channelName"` //渠道名称
ChannelType string `json:"channelType"` //渠道类型 ChannelType string `json:"channelType"` //渠道类型
ItemCode string `json:"itemCode"` //商品编码 如果系统需要在会订货系统导入订单 需要使用到 ItemCode string `json:"itemCode"` //商品编码 如果系统需要在会订货系统导入订单 需要使用到
OriginalPrice int `json:"originalPrice"` //原价(建议零售价) OriginalPrice float64 `json:"originalPrice"` //原价(建议零售价)
Price int `json:"price"` //现价(实际采购价) Price float64 `json:"price"` //现价(实际采购价)
SalesStatus int `json:"salesStatus"` //商品销售状态(0为不可售 1可售) SalesStatus int `json:"salesStatus"` //商品销售状态(0为不可售 1可售)
Stock int `json:"stock"` //当前渠道商品的库存数 Stock int `json:"stock"` //当前渠道商品的库存数
} `json:"skuChannels"` //对应渠道信息 } `json:"skuChannels"` //对应渠道信息
SkuID string `json:"skuId"` //规格id SkuID string `json:"skuId"` //规格id
SkuValues []struct { SkuValues []struct {
...@@ -187,7 +187,7 @@ type GoodsInfoRes struct { ...@@ -187,7 +187,7 @@ type GoodsInfoRes struct {
UnitQuantity int `json:"unitQuantity"` //单位对应的数量 与单位共用 如:1件、1组、1盒、1支 UnitQuantity int `json:"unitQuantity"` //单位对应的数量 与单位共用 如:1件、1组、1盒、1支
Upc string `json:"upc"` // Upc string `json:"upc"` //
Weight float64 `json:"weight"` //重量 Weight float64 `json:"weight"` //重量
WeightG int `json:"weightG"` // WeightG float64 `json:"weightG"` //
} `json:"skuList"` } `json:"skuList"`
SkuNameValues []struct { SkuNameValues []struct {
SkuName string `json:"skuName"` //规格名称 SkuName string `json:"skuName"` //规格名称
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论