增加获取商品预览图接口

finance
黄伟 2 years ago
parent 780cb2240a
commit b9ecdbe3b3

@ -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"`

Loading…
Cancel
Save