添加sku编辑

finance
杨赟 2 years ago
parent 99ec3a8156
commit 8a51401924

@ -103,6 +103,25 @@ func (s *sku) Info(ctx context.Context, skuId uint) (reply ReplySkuInfo, err err
return return
} }
type ArgsSkuEdit struct {
SkuId uint
SupplyBandId uint
SupplyCategoryId uint
Content string
Imgs []SkuImgEdit
}
type SkuImgEdit struct {
Id uint
ReplacePath string
}
// Edit @Title 商品编辑
func (s *sku) Edit(ctx context.Context, args ArgsSkuEdit) error {
reply := 0
return client.GetClient(s).Call(ctx, "Edit", args, &reply)
}
// Discard @Title 废弃 // Discard @Title 废弃
func (s *sku) Discard(ctx context.Context, skuIds []uint) error { func (s *sku) Discard(ctx context.Context, skuIds []uint) error {
reply := 0 reply := 0

Loading…
Cancel
Save