|
|
|
@ -35,3 +35,19 @@ func (s *service) All(ctx context.Context, customerId uint) (reply []ReplyServic
|
|
|
|
|
err = xClient.Call(ctx, "All", customerId, &reply)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ReplyServiceSelect struct {
|
|
|
|
|
Id uint `json:"id"`
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Select @Title 服务筛选
|
|
|
|
|
func (s *service) Select(ctx context.Context) (reply []ReplyServiceSelect, err error) {
|
|
|
|
|
xClient, err := client.GetClient(s)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
args := 0
|
|
|
|
|
err = xClient.Call(ctx, "Select", args, &reply)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|