This commit is contained in:
邹宗楠
2022-10-26 10:19:58 +08:00
parent 2249d006f9
commit 9bd1cee0d8
4 changed files with 43 additions and 36 deletions

View File

@@ -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{