|
|
@ -11,6 +11,7 @@ It is generated from these files: |
|
|
|
It has these top-level messages: |
|
|
|
UserRequest |
|
|
|
UserInfoByUsername |
|
|
|
UserInfoById |
|
|
|
UserInfoByUsercode |
|
|
|
UserResponse |
|
|
|
LoginRequest |
|
|
@ -84,6 +85,31 @@ func (m *UserInfoByUsername) GetUsername() string { |
|
|
|
return "" |
|
|
|
} |
|
|
|
|
|
|
|
// 使用userid查询用户信息请求结构
|
|
|
|
type UserInfoById struct { |
|
|
|
Dbname *string `protobuf:"bytes,1,opt,name=dbname" json:"dbname,omitempty"` |
|
|
|
Userid *string `protobuf:"bytes,2,opt,name=userid" json:"userid,omitempty"` |
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
} |
|
|
|
|
|
|
|
func (m *UserInfoById) Reset() { *m = UserInfoById{} } |
|
|
|
func (m *UserInfoById) String() string { return proto.CompactTextString(m) } |
|
|
|
func (*UserInfoById) ProtoMessage() {} |
|
|
|
|
|
|
|
func (m *UserInfoById) GetDbname() string { |
|
|
|
if m != nil && m.Dbname != nil { |
|
|
|
return *m.Dbname |
|
|
|
} |
|
|
|
return "" |
|
|
|
} |
|
|
|
|
|
|
|
func (m *UserInfoById) GetUserid() string { |
|
|
|
if m != nil && m.Userid != nil { |
|
|
|
return *m.Userid |
|
|
|
} |
|
|
|
return "" |
|
|
|
} |
|
|
|
|
|
|
|
// 使用usercode查询用户信息请求结构
|
|
|
|
type UserInfoByUsercode struct { |
|
|
|
Dbname *string `protobuf:"bytes,1,opt,name=dbname" json:"dbname,omitempty"` |
|
|
@ -453,6 +479,7 @@ type UserService interface { |
|
|
|
BindThird(in *Request, out *Response) error |
|
|
|
GetThird(in *Request, out *Response) error |
|
|
|
GetBusiness(in *Request, out *Response) error |
|
|
|
GetById(in *Request, out *Response) error |
|
|
|
} |
|
|
|
|
|
|
|
// AcceptUserServiceClient accepts connections on the listener and serves requests
|
|
|
@ -545,6 +572,9 @@ func (c *UserServiceClient) GetThird(in *Request, out *Response) error { |
|
|
|
func (c *UserServiceClient) GetBusiness(in *Request, out *Response) error { |
|
|
|
return c.Call("UserService.GetBusiness", in, out) |
|
|
|
} |
|
|
|
func (c *UserServiceClient) GetById(in *Request, out *Response) error { |
|
|
|
return c.Call("UserService.GetById", in, out) |
|
|
|
} |
|
|
|
|
|
|
|
// DialUserService connects to an UserService at the specified network address.
|
|
|
|
func DialUserService(network, addr string) (*UserServiceClient, *rpc.Client, error) { |
|
|
|