From c4a8e9ca71d45768070e2c524497e7972ec4e723 Mon Sep 17 00:00:00 2001 From: sian Date: Wed, 16 Nov 2022 14:08:34 +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 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/customer/sku/item.go b/customer/sku/item.go index c553cca..ce4cebd 100644 --- a/customer/sku/item.go +++ b/customer/sku/item.go @@ -79,3 +79,18 @@ func (i *item) DelAll(ctx context.Context, skuTypeId uint) error { reply := 0 return xClient.Call(ctx, "DelAll", skuTypeId, &reply) } + +type ArgsBySKuIds struct { + SkuIds []uint + SkuTypeId uint +} + +// FindBySkuIds @Title 根据SkuId查询数据 +func (i *item) FindBySkuIds(ctx context.Context, args ArgsBySKuIds) (reply []SkuItem, err error) { + xClient, err := client.GetClient(s) + if err != nil { + return nil, err + } + err = xClient.Call(ctx, "FindBySkuIds", args, &reply) + return +}