|
|
@ -19,6 +19,16 @@ func (c *category) All(ctx context.Context) (result []supply.CategoryItem, err e
|
|
|
|
return
|
|
|
|
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 添加分类
|
|
|
|
// Add @Title 添加分类
|
|
|
|
func (c *category) Add(ctx context.Context, args supply.ArgsCategoryAdd) (err error) {
|
|
|
|
func (c *category) Add(ctx context.Context, args supply.ArgsCategoryAdd) (err error) {
|
|
|
|
reply := 0
|
|
|
|
reply := 0
|
|
|
|