|
|
@ -58,3 +58,13 @@ func (c *category) FindByIds(ctx context.Context, args supply.ArgsCategoryFindBy
|
|
|
|
err = xClient.Call(ctx, "FindByIds", args, &result)
|
|
|
|
err = xClient.Call(ctx, "FindByIds", args, &result)
|
|
|
|
return
|
|
|
|
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)
|
|
|
|
|
|
|
|
}
|
|
|
|