Browse Source

增加订单支付写入

master v0.5.0
guzeng 3 years ago
parent
commit
3d93dcc397
2 changed files with 5 additions and 0 deletions
  1. +4
    -0
      order.pb.go
  2. +1
    -0
      order.proto

+ 4
- 0
order.pb.go View File

@ -105,6 +105,7 @@ type OrderService interface {
Get(in *Request, out *Response) error Get(in *Request, out *Response) error
GetUserBuyTotal(in *Request, out *Response) error GetUserBuyTotal(in *Request, out *Response) error
GetUserBuyNum(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 // 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 { func (c *OrderServiceClient) GetUserBuyNum(in *Request, out *Response) error {
return c.Call("OrderService.GetUserBuyNum", in, out) 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. // 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) {


+ 1
- 0
order.proto View File

@ -24,4 +24,5 @@ service OrderService {
rpc Get (Request) returns (Response); // 使id查询 rpc Get (Request) returns (Response); // 使id查询
rpc GetUserBuyTotal (Request) returns (Response); // rpc GetUserBuyTotal (Request) returns (Response); //
rpc GetUserBuyNum (Request) returns (Response); // rpc GetUserBuyNum (Request) returns (Response); //
rpc Payed (Request) returns (Response); //
} }

Loading…
Cancel
Save