|
@ -100,6 +100,7 @@ func init() { |
|
|
type OrderService interface { |
|
|
type OrderService interface { |
|
|
Create(in *CreateRequest, out *CreateResponse) error |
|
|
Create(in *CreateRequest, out *CreateResponse) error |
|
|
CreateByCart(in *CreateRequest, out *CreateResponse) error |
|
|
CreateByCart(in *CreateRequest, out *CreateResponse) error |
|
|
|
|
|
Cancel(in *CreateRequest, out *CreateResponse) error |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// AcceptOrderServiceClient accepts connections on the listener and serves requests
|
|
|
// AcceptOrderServiceClient accepts connections on the listener and serves requests
|
|
@ -177,6 +178,9 @@ func (c *OrderServiceClient) Create(in *CreateRequest, out *CreateResponse) erro |
|
|
func (c *OrderServiceClient) CreateByCart(in *CreateRequest, out *CreateResponse) error { |
|
|
func (c *OrderServiceClient) CreateByCart(in *CreateRequest, out *CreateResponse) error { |
|
|
return c.Call("OrderService.CreateByCart", in, out) |
|
|
return c.Call("OrderService.CreateByCart", in, out) |
|
|
} |
|
|
} |
|
|
|
|
|
func (c *OrderServiceClient) Cancel(in *CreateRequest, out *CreateResponse) error { |
|
|
|
|
|
return c.Call("OrderService.Cancel", 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) { |
|
|