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"`
UpdateTime interface{} `json:"updateTime"`
} `json:"rentSpuVO"`
SaleAttrs []interface{} `json:"saleAttrs"`
Service string `json:"service"`
ServiceDesc string `json:"serviceDesc"`
ServiceFeeID int `json:"serviceFeeId"`
ShopCategorys []int `json:"shopCategorys"`
SkuJSON string `json:"skuJson"`
Skus []WareSaveSkus `json:"skus"`
TaxCheapContent string `json:"taxCheapContent"`
TaxCode string `json:"taxCode"`
TaxRate int `json:"taxRate"`
TempID string `json:"tempId"`
TemplateID int `json:"templateId"`
Title string `json:"title"`
ToUsePrice string `json:"toUsePrice"`
TransparentImageAudit []interface{} `json:"transparentImageAudit"`
SaleAttrs []interface{} `json:"saleAttrs"`
Service string `json:"service"`
ServiceDesc string `json:"serviceDesc"`
ServiceFeeID int `json:"serviceFeeId"`
ShopCategorys []int `json:"shopCategorys"`
SkuJSON string `json:"skuJson"`
Skus []*WareSaveSkus `json:"skus"`
TaxCheapContent string `json:"taxCheapContent"`
TaxCode string `json:"taxCode"`
TaxRate int `json:"taxRate"`
TempID string `json:"tempId"`
TemplateID int `json:"templateId"`
Title string `json:"title"`
ToUsePrice string `json:"toUsePrice"`
TransparentImageAudit []interface{} `json:"transparentImageAudit"`
TransparentImageMap struct {
} `json:"transparentImageMap"`
TransportID int `json:"transportId"`
@@ -947,18 +947,18 @@ type WareSaveSkusProp struct {
}
type WareSaveSkus struct {
Props []WareSaveSkusProp `json:"props"`
Features []interface{} `json:"features"`
SkuID int64 `json:"skuId,omitempty"`
JdPrice string `json:"jdPrice"`
OuterID string `json:"outerId"`
StockNum int `json:"stockNum"`
RentDeposit string `json:"rentDeposit"`
RentUnit string `json:"rentUnit"`
RentServiceDay string `json:"rentServiceDay"`
SkuProps []interface{} `json:"skuProps"`
Plu string `json:"plu"`
Capacity interface{} `json:"capacity"`
Props []*WareSaveSkusProp `json:"props"`
Features []interface{} `json:"features"`
SkuID int64 `json:"skuId,omitempty"`
JdPrice string `json:"jdPrice"`
OuterID string `json:"outerId"`
StockNum int `json:"stockNum"`
RentDeposit string `json:"rentDeposit"`
RentUnit string `json:"rentUnit"`
RentServiceDay string `json:"rentServiceDay"`
SkuProps []interface{} `json:"skuProps"`
Plu string `json:"plu"`
Capacity interface{} `json:"capacity"`
}
type WareSaveResult struct {

View File

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