You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
service/jd/jdsdk/sku.go

31 lines
718 B

2 years ago
package jdsdk
import (
"context"
sku2 "git.oa00.com/go/jdsdk/sku"
"git.oa00.com/supply-chain/service/client"
)
type sku struct {
}
// GetDetail @Title 获取商品详情 sku最大20
func (s *sku) GetDetail(ctx context.Context, jdSkuIds []uint64) (reply []sku2.Detail, err error) {
xClient, err := client.GetClient(s)
if err != nil {
return
}
err = xClient.Call(ctx, "GetDetail", jdSkuIds, &reply)
return
}
// GetPriceList @Title 获取商品价格列表 最大100
func (s *sku) GetPriceList(ctx context.Context, jdSkuIds []uint64) (reply []sku2.PriceItem, err error) {
xClient, err := client.GetClient(s)
if err != nil {
return
}
err = xClient.Call(ctx, "GetPriceList", jdSkuIds, &reply)
return
}