From 0a305e6fcf7ab3ba1cf809c7dde8babe6be43758 Mon Sep 17 00:00:00 2001 From: sian Date: Fri, 16 Sep 2022 16:03:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- customer/sku/banner.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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) +}