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