From 67dd6598a59fd224f154dc92882cf8167b260a8f Mon Sep 17 00:00:00 2001 From: sian Date: Thu, 20 Oct 2022 17:44:21 +0800 Subject: [PATCH 1/3] =?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 | 1 + 1 file changed, 1 insertion(+) diff --git a/customer/sku/item.go b/customer/sku/item.go index e3d275c..c1a5b8d 100644 --- a/customer/sku/item.go +++ b/customer/sku/item.go @@ -46,6 +46,7 @@ func (i *item) Del(ctx context.Context, args ArgsSkuItemDel) error { type ArgsSkuItemLists struct { SkuTypeId uint + SkuId uint Page bean.Page } From 1c0a45f5c735eb6a48679df7a4626b0747a6cff0 Mon Sep 17 00:00:00 2001 From: sian Date: Fri, 21 Oct 2022 09:58:05 +0800 Subject: [PATCH 2/3] =?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/sale.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/customer/sku/sale.go b/customer/sku/sale.go index 61b16a8..b26f887 100644 --- a/customer/sku/sale.go +++ b/customer/sku/sale.go @@ -15,7 +15,7 @@ type SaleHandleItem struct { } // Add @Title 添加 -func (s *sale) Add(ctx context.Context, skuIds []uint) (reply []SaleSkuItem, err error) { +func (s *sale) Add(ctx context.Context, skuIds []uint) (reply []SaleHandleItem, err error) { xClient, err := client.GetClient(s) if err != nil { return nil, err From 59ac8cfc7c1d938faa65a528e75d943ad0dde647 Mon Sep 17 00:00:00 2001 From: sian Date: Fri, 21 Oct 2022 10:21:02 +0800 Subject: [PATCH 3/3] =?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/sale.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/customer/sku/sale.go b/customer/sku/sale.go index b26f887..f110a00 100644 --- a/customer/sku/sale.go +++ b/customer/sku/sale.go @@ -24,13 +24,18 @@ func (s *sale) Add(ctx context.Context, skuIds []uint) (reply []SaleHandleItem, return } +type ArgsSaleLists struct { + SkuId uint + Page bean.Page +} + // Lists @Title 商品列表 -func (s *sale) Lists(ctx context.Context, page bean.Page) (reply ReplySaleSkuItemLists, err error) { +func (s *sale) Lists(ctx context.Context, args ArgsSaleLists) (reply ReplySaleSkuItemLists, err error) { xClient, err := client.GetClient(s) if err != nil { return ReplySaleSkuItemLists{}, err } - err = xClient.Call(ctx, "Lists", page, &reply) + err = xClient.Call(ctx, "Lists", args, &reply) return }