- 京东门店信息查询相关的三个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

@@ -8,8 +8,8 @@ import (
)
const (
mustExistSkuID = 2017194325
mustExistSkuJXID = "21206"
mustExistSkuID = 2023747677
mustExistSkuJXID = "5246"
)
func TestGetStationInfoList(t *testing.T) {
@@ -17,9 +17,7 @@ func TestGetStationInfoList(t *testing.T) {
if err != nil {
t.Fatal(err)
}
for _, v := range result {
baseapi.SugarLogger.Debug(v)
}
t.Log(utils.Format4Output(result, false))
}
func TestQueryOpenUseable(t *testing.T) {
@@ -32,9 +30,7 @@ func TestQueryOpenUseable(t *testing.T) {
if err != nil {
t.Fatal(err)
}
for _, v := range result {
baseapi.SugarLogger.Debug(v)
}
t.Log(utils.Format4Output(result, false))
}
func TestQueryStockCenter(t *testing.T) {
@@ -46,9 +42,7 @@ func TestQueryStockCenter(t *testing.T) {
if err != nil {
t.Fatal(err)
}
for _, v := range result {
baseapi.SugarLogger.Debug(v)
}
t.Log(utils.Format4Output(result, false))
}
func TestBatchUpdateVendibility(t *testing.T) {