Browse Source

增加查询用户订单统计

master v0.4.0
guzeng 3 years ago
parent
commit
b67bc66cfd
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

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

@ -22,4 +22,5 @@ service OrderService {
rpc cancel (Request) returns (Response); // rpc cancel (Request) returns (Response); //
rpc autoReceive(Request) returns(Response); // rpc autoReceive(Request) returns(Response); //
rpc Get (Request) returns (Response); // 使id查询 rpc Get (Request) returns (Response); // 使id查询
rpc GetUserCount (Request) returns (Response); //
} }

Loading…
Cancel
Save