|
|
@ -49,11 +49,12 @@ type TypeItem struct {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// All @Title 全部分类
|
|
|
|
// All @Title 全部分类
|
|
|
|
func (s *skuType) All(ctx context.Context, id uint) (reply []TypeItem, err error) {
|
|
|
|
func (s *skuType) All(ctx context.Context) (reply []TypeItem, err error) {
|
|
|
|
xClient, err := client.GetClient(s)
|
|
|
|
xClient, err := client.GetClient(s)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
err = xClient.Call(ctx, "All", id, &reply)
|
|
|
|
args := 0
|
|
|
|
|
|
|
|
err = xClient.Call(ctx, "All", args, &reply)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|