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