diff --git a/jd/sku.go b/jd/sku.go index 5e9bcbe..2a1550f 100644 --- a/jd/sku.go +++ b/jd/sku.go @@ -93,6 +93,12 @@ type SkuImg struct { ReplacePath string `json:"replacePath"` } +// GetImgs @Title 获取预览图 +func (s *sku) GetImgs(ctx context.Context, skuId uint) (reply []SkuImg, err error) { + err = client.GetClient(s).Call(ctx, "GetImgs", skuId, &reply) + return +} + type SkuSpecification struct { Name string `json:"name"` Attributes []SkuAttribute `json:"attributes"`