finance
黄伟 2 years ago
parent e8af82928c
commit c3d2805afb

@ -227,13 +227,13 @@ func (s *sku) DownShelves(ctx context.Context, args ArgsSkuDownShelves) error {
}
// GetImgs @Title 获取预览图
func (s *sku) GetImgs(ctx context.Context, skuId uint) error {
reply := 0
func (s *sku) GetImgs(ctx context.Context, skuId uint) (reply []SkuImg, err error) {
xClient, err := client.GetClient(s)
if err != nil {
return err
return nil, err
}
return xClient.Call(ctx, "GetImgs", skuId, &reply)
err = xClient.Call(ctx, "GetImgs", skuId, &reply)
return
}
type ArgsReplaceImg struct {
@ -242,10 +242,11 @@ type ArgsReplaceImg struct {
}
// ReplaceImg @Title 替换图片
func (s *sku) ReplaceImg(ctx context.Context, args ArgsReplaceImg) (reply []SkuImg, err error) {
func (s *sku) ReplaceImg(ctx context.Context, args ArgsReplaceImg) (err error) {
reply := 0
xClient, err := client.GetClient(s)
if err != nil {
return nil, err
return err
}
err = xClient.Call(ctx, "ReplaceImg", args, &reply)
return

Loading…
Cancel
Save