From 0889260abf555f5fb24ce67bb508678ffe2139da Mon Sep 17 00:00:00 2001 From: guzeng Date: Mon, 6 Sep 2021 10:32:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9F=A5=E8=AF=A2=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- order.pb.go | 4 ++++ order.proto | 1 + 2 files changed, 5 insertions(+) diff --git a/order.pb.go b/order.pb.go index 16e68d7..619d494 100644 --- a/order.pb.go +++ b/order.pb.go @@ -102,6 +102,7 @@ type OrderService interface { CreateByCart(in *Request, out *Response) error Cancel(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 @@ -185,6 +186,9 @@ func (c *OrderServiceClient) Cancel(in *Request, out *Response) error { func (c *OrderServiceClient) AutoReceive(in *Request, out *Response) error { 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. func DialOrderService(network, addr string) (*OrderServiceClient, *rpc.Client, error) { diff --git a/order.proto b/order.proto index 393d328..a75df44 100644 --- a/order.proto +++ b/order.proto @@ -21,4 +21,5 @@ service OrderService { rpc createByCart (Request) returns (Response); // 创建订单 rpc cancel (Request) returns (Response); // 取消订单 rpc autoReceive(Request) returns(Response); //自动收货 + rpc Get (Request) returns (Response); // 使用id查询 } \ No newline at end of file