This commit is contained in:
苏尹岚
2020-11-25 11:26:38 +08:00
parent f181b0fb08
commit 43c6791913
2 changed files with 34 additions and 34 deletions

View File

@@ -908,7 +908,7 @@ type WareSaveParam struct {
ServiceFeeID int `json:"serviceFeeId"` ServiceFeeID int `json:"serviceFeeId"`
ShopCategorys []int `json:"shopCategorys"` ShopCategorys []int `json:"shopCategorys"`
SkuJSON string `json:"skuJson"` SkuJSON string `json:"skuJson"`
Skus []WareSaveSkus `json:"skus"` Skus []*WareSaveSkus `json:"skus"`
TaxCheapContent string `json:"taxCheapContent"` TaxCheapContent string `json:"taxCheapContent"`
TaxCode string `json:"taxCode"` TaxCode string `json:"taxCode"`
TaxRate int `json:"taxRate"` TaxRate int `json:"taxRate"`
@@ -947,7 +947,7 @@ type WareSaveSkusProp struct {
} }
type WareSaveSkus struct { type WareSaveSkus struct {
Props []WareSaveSkusProp `json:"props"` Props []*WareSaveSkusProp `json:"props"`
Features []interface{} `json:"features"` Features []interface{} `json:"features"`
SkuID int64 `json:"skuId,omitempty"` SkuID int64 `json:"skuId,omitempty"`
JdPrice string `json:"jdPrice"` JdPrice string `json:"jdPrice"`

View File

@@ -218,24 +218,24 @@ func TestWareSave(t *testing.T) {
Weight: "3", Weight: "3",
ShopCategorys: []int{15602360}, ShopCategorys: []int{15602360},
Notes: desc, Notes: desc,
Skus: []WareSaveSkus{ Skus: []*WareSaveSkus{
WareSaveSkus{ &WareSaveSkus{
SkuID: 10024685331653, SkuID: 10024685331653,
JdPrice: "15", JdPrice: "15",
StockNum: 5, StockNum: 5,
Props: []WareSaveSkusProp{ Props: []*WareSaveSkusProp{
WareSaveSkusProp{ &WareSaveSkusProp{
AttrID: 1000022043, AttrID: 1000022043,
AttrValues: 2515313135, AttrValues: 2515313135,
AttrValueAlias: "250g", AttrValueAlias: "250g",
}, },
}, },
}, },
WareSaveSkus{ &WareSaveSkus{
JdPrice: "30", JdPrice: "30",
StockNum: 5, StockNum: 5,
Props: []WareSaveSkusProp{ Props: []*WareSaveSkusProp{
WareSaveSkusProp{ &WareSaveSkusProp{
AttrID: 1000022043, AttrID: 1000022043,
AttrValues: 2515430634, AttrValues: 2515430634,
AttrValueAlias: "500g", AttrValueAlias: "500g",