|
|
|
@ -177,12 +177,12 @@ type ReplyByIdItem struct {
|
|
|
|
|
SourceName string `json:"sourceName"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// FindByIds @Title 根据商品Ids获取商品信息
|
|
|
|
|
func (g *goods) FindByIds(ctx context.Context, goodsIds []uint) (reply []AdoptItem, err error) {
|
|
|
|
|
// FindBySkuIds @Title 根据商品Ids获取商品信息
|
|
|
|
|
func (g *goods) FindBySkuIds(ctx context.Context, goodsIds []uint) (reply []AdoptItem, err error) {
|
|
|
|
|
xClient, err := client.GetClient(g)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
err = xClient.Call(ctx, "FindByIds", goodsIds, &reply)
|
|
|
|
|
err = xClient.Call(ctx, "FindBySkuIds", goodsIds, &reply)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|