- mtwm.RetailGet与ebai.SkuList用struct替换map

This commit is contained in:
gazebo
2019-05-30 17:01:52 +08:00
parent b890b9c4d0
commit 51713e54be
4 changed files with 142 additions and 29 deletions

View File

@@ -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)