|
|
@ -153,3 +153,13 @@ func (g *goods) Discard(ctx context.Context, goodsIds []uint) (reply []AdoptItem
|
|
|
|
err = xClient.Call(ctx, "Discard", goodsIds, &reply)
|
|
|
|
err = xClient.Call(ctx, "Discard", goodsIds, &reply)
|
|
|
|
return
|
|
|
|
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)
|
|
|
|
|
|
|
|
}
|
|
|
|