From 3d93dcc397bfafd82067cd9ee83974627d9c9e3d Mon Sep 17 00:00:00 2001 From: guzeng Date: Fri, 22 Oct 2021 11:36:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AE=A2=E5=8D=95=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E5=86=99=E5=85=A5?= 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 cc4e559..f2193ff 100644 --- a/order.pb.go +++ b/order.pb.go @@ -105,6 +105,7 @@ type OrderService interface { Get(in *Request, out *Response) error GetUserBuyTotal(in *Request, out *Response) error GetUserBuyNum(in *Request, out *Response) error + Payed(in *Request, out *Response) error } // AcceptOrderServiceClient accepts connections on the listener and serves requests @@ -197,6 +198,9 @@ func (c *OrderServiceClient) GetUserBuyTotal(in *Request, out *Response) error { func (c *OrderServiceClient) GetUserBuyNum(in *Request, out *Response) error { return c.Call("OrderService.GetUserBuyNum", in, out) } +func (c *OrderServiceClient) Payed(in *Request, out *Response) error { + return c.Call("OrderService.Payed", 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 6aaf46b..91f8965 100644 --- a/order.proto +++ b/order.proto @@ -24,4 +24,5 @@ service OrderService { rpc Get (Request) returns (Response); // 使用id查询 rpc GetUserBuyTotal (Request) returns (Response); // 查询用户购买某商品数量 rpc GetUserBuyNum (Request) returns (Response); // 查询用户购买某商品次数 + rpc Payed (Request) returns (Response); // 订单支付确认 } \ No newline at end of file