From cd4974066e7e961f1ec7a9f42912c71f34758d6f Mon Sep 17 00:00:00 2001 From: sian Date: Tue, 4 Apr 2023 14:01:15 +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 --- wholesale/category.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wholesale/category.go b/wholesale/category.go index 4e90bb7..9b7450f 100644 --- a/wholesale/category.go +++ b/wholesale/category.go @@ -19,6 +19,16 @@ func (c *category) All(ctx context.Context) (result []supply.CategoryItem, err e return } +// AllNoHidden @Title 获取显示的分类 +func (c *category) AllNoHidden(ctx context.Context) (result []supply.CategoryItem, err error) { + xClient, err := client.GetClient(c) + if err != nil { + return + } + err = xClient.Call(ctx, "AllNoHidden", 0, &result) + return +} + // Add @Title 添加分类 func (c *category) Add(ctx context.Context, args supply.ArgsCategoryAdd) (err error) { reply := 0