diff --git a/supply/sku.go b/supply/sku.go index ddacfc0..7085a8e 100644 --- a/supply/sku.go +++ b/supply/sku.go @@ -240,3 +240,19 @@ func (s *sku) EditAdjust(ctx context.Context, args ArgsSkuAdjustType) error { } return xClient.Call(ctx, "EditAdjust", args, &reply) } + +type ArgsSkuReplaceImg struct { + SkuId uint // 商品id + ImgId uint // 图片id + ImgPath string // 图片路径 +} + +// ReplaceImg @Title 替换图片 +func (s *sku) ReplaceImg(ctx context.Context, args ArgsSkuReplaceImg) error { + reply := 0 + xClient, err := client.GetClient(s) + if err != nil { + return err + } + return xClient.Call(ctx, "ReplaceImg", args, &reply) +}