Browse Source

增加getAddressInfo方法

master v0.6.0
guzeng 3 years ago
parent
commit
b8f457f56e
3 changed files with 9 additions and 0 deletions
  1. +4
    -0
      common.go
  2. +4
    -0
      user.pb.go
  3. +1
    -0
      user.proto

+ 4
- 0
common.go View File

@ -42,6 +42,10 @@ type GetUserReq struct {
UserId string
}
type GetAddressReq struct {
Req
AddressId string
}
type Res struct {
Errcode int
Errmsg string


+ 4
- 0
user.pb.go View File

@ -481,6 +481,7 @@ type UserService interface {
GetBusiness(in *Request, out *Response) error
GetById(in *Request, out *Response) error
GetBusinessInfo(in *Request, out *Response) error
GetAddressInfo(in *Request, out *Response) error
}
// AcceptUserServiceClient accepts connections on the listener and serves requests
@ -579,6 +580,9 @@ func (c *UserServiceClient) GetById(in *Request, out *Response) error {
func (c *UserServiceClient) GetBusinessInfo(in *Request, out *Response) error {
return c.Call("UserService.GetBusinessInfo", in, out)
}
func (c *UserServiceClient) GetAddressInfo(in *Request, out *Response) error {
return c.Call("UserService.GetAddressInfo", in, out)
}
// DialUserService connects to an UserService at the specified network address.
func DialUserService(network, addr string) (*UserServiceClient, *rpc.Client, error) {


+ 1
- 0
user.proto View File

@ -91,4 +91,5 @@ service UserService {
rpc getBusiness(Request) returns (Response); //
rpc getById(Request) returns (Response); //
rpc getBusinessInfo(Request) returns (Response); //
rpc getAddressInfo(Request) returns (Response); //
}

Loading…
Cancel
Save