From bea58324a60d10aeabbb5c32e3bb0bcaa3325987 Mon Sep 17 00:00:00 2001 From: sian Date: Tue, 4 Apr 2023 14:07: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 --- wholesale/category.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wholesale/category.go b/wholesale/category.go index 9b7450f..1bca7e7 100644 --- a/wholesale/category.go +++ b/wholesale/category.go @@ -58,3 +58,13 @@ func (c *category) FindByIds(ctx context.Context, args supply.ArgsCategoryFindBy err = xClient.Call(ctx, "FindByIds", args, &result) return } + +// ChangeHidden @Title 切换隐藏状态 +func (c *category) ChangeHidden(ctx context.Context, args supply.ArgsChangeHidden) error { + xClient, err := client.GetClient(c) + if err != nil { + return err + } + reply := 0 + return xClient.Call(ctx, "ChangeHidden", args, &reply) +}