添加替换图片接口

finance
杨赟 2 years ago
parent 7142dcba0c
commit 87b6aebb79

@ -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)
}

Loading…
Cancel
Save