Browse Source

修改查询用户订单统计

master v0.4.1
guzeng 3 years ago
parent
commit
a477ea1dd3
2 changed files with 9 additions and 4 deletions
  1. +7
    -3
      order.pb.go
  2. +2
    -1
      order.proto

+ 7
- 3
order.pb.go View File

@ -103,7 +103,8 @@ 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
GetUserBuyTotal(in *Request, out *Response) error
GetUserBuyNum(in *Request, out *Response) error
}
// AcceptOrderServiceClient accepts connections on the listener and serves requests
@ -190,8 +191,11 @@ 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)
func (c *OrderServiceClient) GetUserBuyTotal(in *Request, out *Response) error {
return c.Call("OrderService.GetUserBuyTotal", in, out)
}
func (c *OrderServiceClient) GetUserBuyNum(in *Request, out *Response) error {
return c.Call("OrderService.GetUserBuyNum", in, out)
}
// DialOrderService connects to an OrderService at the specified network address.


+ 2
- 1
order.proto View File

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

Loading…
Cancel
Save