diff --git a/supplier/goods.go b/supplier/goods.go index d136d68..cab13b4 100644 --- a/supplier/goods.go +++ b/supplier/goods.go @@ -193,3 +193,17 @@ func (g *goods) FindBySkuIds(ctx context.Context, skuIds []uint) (reply []ReplyB err = xClient.Call(ctx, "FindBySkuIds", skuIds, &reply) return } + +type ArgsGoodsChange struct { + GoodsId uint // 商品id +} + +// Change @Title 商品信息变动 +func (g *goods) Change(ctx context.Context, args ArgsGoodsChange) (err error) { + xClient, err := client.GetClient(g) + if err != nil { + return err + } + reply := 0 + return xClient.Call(ctx, "Change", args, &reply) +} diff --git a/supply/sku.go b/supply/sku.go index 653560c..d09c9fc 100644 --- a/supply/sku.go +++ b/supply/sku.go @@ -361,6 +361,7 @@ type ArgsSkuChangeData struct { Unit string // 销售单位 UpcCode string // 商品条码 Source source // 商品来源 + Imgs []string // 商品图片 第一张主图 Specifications []SkuSpecification // 商品参数信息 } diff --git a/wholesale/wholesale.go b/wholesale/wholesale.go index 95b0102..e0610c0 100644 --- a/wholesale/wholesale.go +++ b/wholesale/wholesale.go @@ -10,6 +10,7 @@ type Wholesale struct { Category category Source sourceRpc Sku sku + Order order SkuAudit skuAudit Setting setting.Setting Channel channel.Channel