|
@ -102,6 +102,7 @@ type OrderService interface { |
|
|
CreateByCart(in *Request, out *Response) error |
|
|
CreateByCart(in *Request, out *Response) error |
|
|
Cancel(in *Request, out *Response) error |
|
|
Cancel(in *Request, out *Response) error |
|
|
AutoReceive(in *Request, out *Response) error |
|
|
AutoReceive(in *Request, out *Response) error |
|
|
|
|
|
Get(in *Request, out *Response) error |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// AcceptOrderServiceClient accepts connections on the listener and serves requests
|
|
|
// AcceptOrderServiceClient accepts connections on the listener and serves requests
|
|
@ -185,6 +186,9 @@ func (c *OrderServiceClient) Cancel(in *Request, out *Response) error { |
|
|
func (c *OrderServiceClient) AutoReceive(in *Request, out *Response) error { |
|
|
func (c *OrderServiceClient) AutoReceive(in *Request, out *Response) error { |
|
|
return c.Call("OrderService.AutoReceive", in, out) |
|
|
return c.Call("OrderService.AutoReceive", in, out) |
|
|
} |
|
|
} |
|
|
|
|
|
func (c *OrderServiceClient) Get(in *Request, out *Response) error { |
|
|
|
|
|
return c.Call("OrderService.Get", in, out) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// DialOrderService connects to an OrderService at the specified network address.
|
|
|
// DialOrderService connects to an OrderService at the specified network address.
|
|
|
func DialOrderService(network, addr string) (*OrderServiceClient, *rpc.Client, error) { |
|
|
func DialOrderService(network, addr string) (*OrderServiceClient, *rpc.Client, error) { |
|
|