Merge branch 'master' of git.oa00.com:supply-chain/service

finance
杨赟 2 years ago
commit a92027a5d4

@ -145,11 +145,22 @@ func (g *goods) Adopt(ctx context.Context, goodsIds []uint) (reply []AdoptItem,
}
// Discard @Title 批量废弃
func (g *goods) Discard(ctx context.Context, goodsIds []uint) (reply []AdoptItem, err error) {
func (g *goods) Discard(ctx context.Context, goodsIds []uint) (err error) {
xClient, err := client.GetClient(g)
if err != nil {
return
}
reply := 0
err = xClient.Call(ctx, "Discard", goodsIds, &reply)
return
}
// ReHandle @Title 重新处理商品
func (g *goods) ReHandle(ctx context.Context, skuId uint) error {
reply := 0
xClient, err := client.GetClient(g)
if err != nil {
return err
}
return xClient.Call(ctx, "ReHandle", skuId, &reply)
}

Loading…
Cancel
Save