京东物料struct修改

This commit is contained in:
苏尹岚
2020-03-10 11:08:51 +08:00
parent 9496d30a71
commit 6f1a514545
2 changed files with 39 additions and 19 deletions

View File

@@ -42,9 +42,10 @@ func TestAddOrder(t *testing.T) {
ConsigneeMobile: "18160030913",
ConsigneeAddress: "成都市金牛区",
OrderMark: OrderMark,
IsvGoodsNo: "JX10012,JX10011",
Price: "0,0",
Quantity: "1,2",
// IsvGoodsNo: "JX10012,JX10011",
Price: "0,0",
Quantity: "1,2",
GoodsNo: "EMG4418111927871,EMG4418111927871",
})
if err != nil {
t.Fatal(err)
@@ -59,19 +60,30 @@ func TestCancelOrder(t *testing.T) {
t.Log(utils.Format4Output(result, false))
}
func TestQueryOrderStatus(t *testing.T) {
result, err := api.QueryOrderStatus("ESL96778165421301")
result, err := api.QueryOrderStatus("ESL96778164878526")
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}
func TestGetTrackMessagePlusByOrder(t *testing.T) {
result, err := api.GetTrackMessagePlusByOrder("46526340012148")
result, err := api.GetTrackMessagePlusByOrder("46304726013148")
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}
func TestSearchShopStock(t *testing.T) {
api.SearchShopStock(&SearchShopStockParam{})
result, err := api.SearchShopStock(&SearchShopStockParam{
RequestId: utils.GetUUID(),
DeptNo: DepartmentNo,
ShopNo: ShopNo,
PageSize: 1000,
// GoodsNo: "EMG4418111359846",
PageNumber: 1,
})
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}