- mtwm.RetailGet与ebai.SkuList用struct替换map
This commit is contained in:
@@ -48,9 +48,8 @@ func TestSkuGetItemsByCategoryId(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestSkuList(t *testing.T) {
|
||||
result, err := api.SkuList(testShopID, map[string]interface{}{
|
||||
KeySkuID: 15579787500720732,
|
||||
// "delete": 1,
|
||||
result, err := api.SkuList(testShopID, &SkuListParams{
|
||||
SkuID: 15579787500720732,
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
@@ -94,9 +93,12 @@ func TestSkuCreate(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestSkuUpdate(t *testing.T) {
|
||||
result, err := api.SkuUpdate("2", 15579787500720732, map[string]interface{}{
|
||||
// 15579787500720732 高级
|
||||
|
||||
result, err := api.SkuUpdate("2", 1557043939079105, map[string]interface{}{
|
||||
// "name": "高级商品2015a333约1100g/份",
|
||||
"rtf": "http://www.rosy.net.cn/rtf.html",
|
||||
// "rtf": "http://www.rosy.net.cn/rtf.html",
|
||||
"shelf_number": 12,
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
Reference in New Issue
Block a user