diff --git a/user.pb.go b/user.pb.go index 1c4df8d..2db43eb 100644 --- a/user.pb.go +++ b/user.pb.go @@ -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) { diff --git a/user.proto b/user.proto index 729b243..905707b 100644 --- a/user.proto +++ b/user.proto @@ -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); // 查询商户 } \ No newline at end of file