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