diff --git a/customer/sku/item.go b/customer/sku/item.go index c1a5b8d..c553cca 100644 --- a/customer/sku/item.go +++ b/customer/sku/item.go @@ -69,3 +69,13 @@ func (i *item) Lists(ctx context.Context, args ArgsSkuItemLists) (reply ReplySku err = xClient.Call(ctx, "Lists", args, &reply) return } + +// DelAll @Title 删除全部商品 +func (i *item) DelAll(ctx context.Context, skuTypeId uint) error { + xClient, err := client.GetClient(i) + if err != nil { + return err + } + reply := 0 + return xClient.Call(ctx, "DelAll", skuTypeId, &reply) +} diff --git a/customer/sku/sale.go b/customer/sku/sale.go index f110a00..8e074c7 100644 --- a/customer/sku/sale.go +++ b/customer/sku/sale.go @@ -79,3 +79,14 @@ func (s *sale) GetImg(ctx context.Context) (reply string, err error) { err = xClient.Call(ctx, "GetImg", args, &reply) return } + +// DelAll @Title 删除全部商品 +func (s *sale) DelAll(ctx context.Context) error { + xClient, err := client.GetClient(s) + if err != nil { + return err + } + args := 0 + reply := 0 + return xClient.Call(ctx, "DelAll", args, &reply) +}