|
|
@ -380,6 +380,8 @@ func init() { |
|
|
|
type UserService interface { |
|
|
|
GetByToken(in *UserRequest, out *UserResponse) error |
|
|
|
Login(in *LoginRequest, out *LoginResponse) error |
|
|
|
GetByUsername(in *UserInfoByUsername, out *UserResponse) error |
|
|
|
GetByUsercode(in *UserInfoByUsercode, out *UserResponse) error |
|
|
|
} |
|
|
|
|
|
|
|
// AcceptUserServiceClient accepts connections on the listener and serves requests
|
|
|
@ -457,6 +459,12 @@ func (c *UserServiceClient) GetByToken(in *UserRequest, out *UserResponse) error |
|
|
|
func (c *UserServiceClient) Login(in *LoginRequest, out *LoginResponse) error { |
|
|
|
return c.Call("UserService.Login", in, out) |
|
|
|
} |
|
|
|
func (c *UserServiceClient) GetByUsername(in *UserInfoByUsername, out *UserResponse) error { |
|
|
|
return c.Call("UserService.GetByUsername", in, out) |
|
|
|
} |
|
|
|
func (c *UserServiceClient) GetByUsercode(in *UserInfoByUsercode, out *UserResponse) error { |
|
|
|
return c.Call("UserService.GetByUsercode", in, out) |
|
|
|
} |
|
|
|
|
|
|
|
// DialUserService connects to an UserService at the specified network address.
|
|
|
|
func DialUserService(network, addr string) (*UserServiceClient, *rpc.Client, error) { |
|
|
|