diff --git a/customer/sku/banner.go b/customer/sku/banner.go index 718cf87..9703580 100644 --- a/customer/sku/banner.go +++ b/customer/sku/banner.go @@ -50,3 +50,18 @@ func (b *banner) Del(ctx context.Context, id uint) (err error) { reply := 0 return xClient.Call(ctx, "Del", id, &reply) } + +type ArgsSkuBannerAdd struct { + SkuId uint + Img string +} + +// Add @Title 添加轮播图 +func (b *banner) Add(ctx context.Context, args ArgsSkuBannerEdit) error { + xClient, err := client.GetClient(b) + if err != nil { + return err + } + reply := 0 + return xClient.Call(ctx, "Add", args, &reply) +}