From f2b275584719508904e4015d9d62b159ffd66a31 Mon Sep 17 00:00:00 2001 From: sian Date: Tue, 4 Apr 2023 13:52:47 +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 --- supply/category.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/supply/category.go b/supply/category.go index c8b9bf8..88244b1 100644 --- a/supply/category.go +++ b/supply/category.go @@ -26,6 +26,16 @@ func (c *category) All(ctx context.Context) (result []CategoryItem, err error) { return } +// AllNoHidden @Title 获取显示的分类 +func (c *category) AllNoHidden(ctx context.Context) (result []CategoryItem, err error) { + xClient, err := client.GetClient(c) + if err != nil { + return + } + err = xClient.Call(ctx, "AllNoHidden", 0, &result) + return +} + type ArgsCategoryAdd struct { Name string // 分类名称 ParentId uint // 上级id