From b03604613ae86ad169743889fd589e62f62dadbf Mon Sep 17 00:00:00 2001 From: sian Date: Wed, 12 Oct 2022 11:47:32 +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/item.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/customer/sku/item.go b/customer/sku/item.go index 8171e24..e3d275c 100644 --- a/customer/sku/item.go +++ b/customer/sku/item.go @@ -29,14 +29,19 @@ func (i *item) Add(ctx context.Context, args ArgsSkuItemAdd) (reply []ReplySkuIt return } +type ArgsSkuItemDel struct { + SkuTypeId uint + SkuIds []uint +} + // Del @Title 删除商品 -func (i *item) Del(ctx context.Context, ids []uint) error { +func (i *item) Del(ctx context.Context, args ArgsSkuItemDel) error { xClient, err := client.GetClient(i) if err != nil { return err } reply := 0 - return xClient.Call(ctx, "Del", ids, &reply) + return xClient.Call(ctx, "Del", args, &reply) } type ArgsSkuItemLists struct {