jd decode

This commit is contained in:
richboo111
2022-10-26 14:33:29 +08:00
parent bfe333c010
commit c37c869c33
6 changed files with 100 additions and 34 deletions

View File

@@ -31,30 +31,30 @@ func TestDelVipPrice(t *testing.T) {
// t.Log(utils.Format4Output(result, false))
}
func TestQueryOpenUseable(t *testing.T) {
result, err := api.QueryOpenUseable([]*BaseStockCenterRequest{
&BaseStockCenterRequest{
StationNo: mustExistStoreID,
SkuId: mustExistSkuID,
},
})
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}
//func TestQueryOpenUseable(t *testing.T) {
// result, err := api.QueryOpenUseable([]*BaseStockCenterRequest{
// &BaseStockCenterRequest{
// StationNo: mustExistStoreID,
// SkuId: mustExistSkuID,
// },
// })
// if err != nil {
// t.Fatal(err)
// }
// t.Log(utils.Format4Output(result, false))
//}
func TestQueryStockCenter(t *testing.T) {
result, err := api.QueryStockCenter(mustExistStoreJXID, []*SkuIdEntity{
&SkuIdEntity{
OutSkuId: mustExistSkuJXID,
},
}, "test")
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}
//func TestQueryStockCenter(t *testing.T) {
// result, err := api.QueryStockCenter(mustExistStoreJXID, []*SkuIdEntity{
// &SkuIdEntity{
// OutSkuId: mustExistSkuJXID,
// },
// }, "test")
// if err != nil {
// t.Fatal(err)
// }
// t.Log(utils.Format4Output(result, false))
//}
func TestBatchUpdateVendibility(t *testing.T) {
result, err := api.BatchUpdateVendibility("", "100130", "", []*StockVendibility{