From 87b6aebb791df7295dff96e584f84464623fef44 Mon Sep 17 00:00:00 2001 From: kanade Date: Wed, 3 Aug 2022 14:29:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9B=BF=E6=8D=A2=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply/sku.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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) +}