- 京东门店信息查询相关的三个API返回值改为具体的struct

This commit is contained in:
gazebo
2019-05-17 17:13:25 +08:00
parent 677100b522
commit 4a82d71f0d
4 changed files with 51 additions and 25 deletions

View File

@@ -58,12 +58,12 @@ func TestBatchUpdateOutSkuId(t *testing.T) {
func TestQuerySkuInfos(t *testing.T) {
pageSize := 20
result, totalCount, err := api.QuerySkuInfos("", 0, 0, pageSize, true)
result, totalCount, err := api.QuerySkuInfos("一个高级商品", 0, 0, pageSize, true)
if err != nil {
t.Fatal(err)
}
if len(result) != pageSize || totalCount == 0 {
baseapi.SugarLogger.Debug(result)
baseapi.SugarLogger.Debug(utils.Format4Output(result, false))
t.Fatalf("QuerySkuInfos result size is not same as requested:%d", pageSize)
}
}