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