From b67bc66cfd85e933b8891cc7469fa2ef8d8e3e18 Mon Sep 17 00:00:00 2001 From: guzeng Date: Sat, 9 Oct 2021 10:44:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9F=A5=E8=AF=A2=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E8=AE=A2=E5=8D=95=E7=BB=9F=E8=AE=A1?= 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 619d494..9c36e91 100644 --- a/order.pb.go +++ b/order.pb.go @@ -103,6 +103,7 @@ type OrderService interface { Cancel(in *Request, out *Response) error AutoReceive(in *Request, out *Response) error Get(in *Request, out *Response) error + GetUserCount(in *Request, out *Response) error } // AcceptOrderServiceClient accepts connections on the listener and serves requests @@ -189,6 +190,9 @@ func (c *OrderServiceClient) AutoReceive(in *Request, out *Response) error { func (c *OrderServiceClient) Get(in *Request, out *Response) error { return c.Call("OrderService.Get", in, out) } +func (c *OrderServiceClient) GetUserCount(in *Request, out *Response) error { + return c.Call("OrderService.GetUserCount", 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 a75df44..1498a43 100644 --- a/order.proto +++ b/order.proto @@ -22,4 +22,5 @@ service OrderService { rpc cancel (Request) returns (Response); // 取消订单 rpc autoReceive(Request) returns(Response); //自动收货 rpc Get (Request) returns (Response); // 使用id查询 + rpc GetUserCount (Request) returns (Response); // 查询用户订单统计 } \ No newline at end of file