Browse Source

增加商户查询方法

master v0.2.9
guzeng 3 years ago
parent
commit
121833933f
2 changed files with 5 additions and 0 deletions
  1. +4
    -0
      user.pb.go
  2. +1
    -0
      user.proto

+ 4
- 0
user.pb.go View File

@ -452,6 +452,7 @@ type UserService interface {
GetByUsercode(in *UserInfoByUsercode, out *UserResponse) error
BindThird(in *Request, out *Response) error
GetThird(in *Request, out *Response) error
GetBusiness(in *Request, out *Response) error
}
// AcceptUserServiceClient accepts connections on the listener and serves requests
@ -541,6 +542,9 @@ func (c *UserServiceClient) BindThird(in *Request, out *Response) error {
func (c *UserServiceClient) GetThird(in *Request, out *Response) error {
return c.Call("UserService.GetThird", in, out)
}
func (c *UserServiceClient) GetBusiness(in *Request, out *Response) error {
return c.Call("UserService.GetBusiness", 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

@ -83,4 +83,5 @@ service UserService {
rpc getByUsercode (UserInfoByUsercode) returns (UserResponse); // 使usercode查询用户
rpc bindThird (Request) returns (Response); //
rpc getThird(Request) returns (Response); //
rpc getBusiness(Request) returns (Response); //
}

Loading…
Cancel
Save