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

@@ -902,21 +902,21 @@ type WareSaveParam struct {
StaffID int `json:"staffId"` StaffID int `json:"staffId"`
UpdateTime interface{} `json:"updateTime"` UpdateTime interface{} `json:"updateTime"`
} `json:"rentSpuVO"` } `json:"rentSpuVO"`
SaleAttrs []interface{} `json:"saleAttrs"` SaleAttrs []interface{} `json:"saleAttrs"`
Service string `json:"service"` Service string `json:"service"`
ServiceDesc string `json:"serviceDesc"` ServiceDesc string `json:"serviceDesc"`
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"`
TempID string `json:"tempId"` TempID string `json:"tempId"`
TemplateID int `json:"templateId"` TemplateID int `json:"templateId"`
Title string `json:"title"` Title string `json:"title"`
ToUsePrice string `json:"toUsePrice"` ToUsePrice string `json:"toUsePrice"`
TransparentImageAudit []interface{} `json:"transparentImageAudit"` TransparentImageAudit []interface{} `json:"transparentImageAudit"`
TransparentImageMap struct { TransparentImageMap struct {
} `json:"transparentImageMap"` } `json:"transparentImageMap"`
TransportID int `json:"transportId"` TransportID int `json:"transportId"`
@@ -947,18 +947,18 @@ 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"`
OuterID string `json:"outerId"` OuterID string `json:"outerId"`
StockNum int `json:"stockNum"` StockNum int `json:"stockNum"`
RentDeposit string `json:"rentDeposit"` RentDeposit string `json:"rentDeposit"`
RentUnit string `json:"rentUnit"` RentUnit string `json:"rentUnit"`
RentServiceDay string `json:"rentServiceDay"` RentServiceDay string `json:"rentServiceDay"`
SkuProps []interface{} `json:"skuProps"` SkuProps []interface{} `json:"skuProps"`
Plu string `json:"plu"` Plu string `json:"plu"`
Capacity interface{} `json:"capacity"` Capacity interface{} `json:"capacity"`
} }
type WareSaveResult struct { type WareSaveResult struct {

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",