From b03604613ae86ad169743889fd589e62f62dadbf Mon Sep 17 00:00:00 2001 From: sian Date: Wed, 12 Oct 2022 11:47:32 +0800 Subject: [PATCH 1/2] =?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 { From fc5713a2ae1907b42ff776fcfad7129b61a36570 Mon Sep 17 00:00:00 2001 From: sian Date: Wed, 12 Oct 2022 13:49:02 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supplier/goods.go | 1 + 1 file changed, 1 insertion(+) diff --git a/supplier/goods.go b/supplier/goods.go index d298a14..b5628d6 100644 --- a/supplier/goods.go +++ b/supplier/goods.go @@ -98,6 +98,7 @@ type SkuSpecItem struct { } type SkuItem struct { + SkuId uint `json:"skuId"` Color string `json:"color"` Size string `json:"size"` SupplyPrice decimal.Decimal `json:"supplyPrice"`