1
This commit is contained in:
@@ -31,30 +31,31 @@ 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 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 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 TestBatchUpdateVendibility(t *testing.T) {
|
||||
result, err := api.BatchUpdateVendibility("", "100130", "", []*StockVendibility{
|
||||
|
||||
Reference in New Issue
Block a user