|
|
@ -15,6 +15,8 @@ It has these top-level messages: |
|
|
|
UserResponse |
|
|
|
LoginRequest |
|
|
|
LoginResponse |
|
|
|
Request |
|
|
|
Response |
|
|
|
*/ |
|
|
|
package userrpc |
|
|
|
|
|
|
@ -374,6 +376,72 @@ func (m *LoginResponse) GetType() string { |
|
|
|
return "" |
|
|
|
} |
|
|
|
|
|
|
|
// 信息请求结构
|
|
|
|
type Request struct { |
|
|
|
Data *string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"` |
|
|
|
Time *string `protobuf:"bytes,2,opt,name=time" json:"time,omitempty"` |
|
|
|
Sign *string `protobuf:"bytes,3,opt,name=sign" json:"sign,omitempty"` |
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
} |
|
|
|
|
|
|
|
func (m *Request) Reset() { *m = Request{} } |
|
|
|
func (m *Request) String() string { return proto.CompactTextString(m) } |
|
|
|
func (*Request) ProtoMessage() {} |
|
|
|
|
|
|
|
func (m *Request) GetData() string { |
|
|
|
if m != nil && m.Data != nil { |
|
|
|
return *m.Data |
|
|
|
} |
|
|
|
return "" |
|
|
|
} |
|
|
|
|
|
|
|
func (m *Request) GetTime() string { |
|
|
|
if m != nil && m.Time != nil { |
|
|
|
return *m.Time |
|
|
|
} |
|
|
|
return "" |
|
|
|
} |
|
|
|
|
|
|
|
func (m *Request) GetSign() string { |
|
|
|
if m != nil && m.Sign != nil { |
|
|
|
return *m.Sign |
|
|
|
} |
|
|
|
return "" |
|
|
|
} |
|
|
|
|
|
|
|
// 信息响应结构
|
|
|
|
type Response struct { |
|
|
|
Data *string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"` |
|
|
|
Time *string `protobuf:"bytes,2,opt,name=time" json:"time,omitempty"` |
|
|
|
Sign *string `protobuf:"bytes,3,opt,name=sign" json:"sign,omitempty"` |
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
} |
|
|
|
|
|
|
|
func (m *Response) Reset() { *m = Response{} } |
|
|
|
func (m *Response) String() string { return proto.CompactTextString(m) } |
|
|
|
func (*Response) ProtoMessage() {} |
|
|
|
|
|
|
|
func (m *Response) GetData() string { |
|
|
|
if m != nil && m.Data != nil { |
|
|
|
return *m.Data |
|
|
|
} |
|
|
|
return "" |
|
|
|
} |
|
|
|
|
|
|
|
func (m *Response) GetTime() string { |
|
|
|
if m != nil && m.Time != nil { |
|
|
|
return *m.Time |
|
|
|
} |
|
|
|
return "" |
|
|
|
} |
|
|
|
|
|
|
|
func (m *Response) GetSign() string { |
|
|
|
if m != nil && m.Sign != nil { |
|
|
|
return *m.Sign |
|
|
|
} |
|
|
|
return "" |
|
|
|
} |
|
|
|
|
|
|
|
func init() { |
|
|
|
} |
|
|
|
|
|
|
@ -382,6 +450,7 @@ type UserService interface { |
|
|
|
Login(in *LoginRequest, out *LoginResponse) error |
|
|
|
GetByUsername(in *UserInfoByUsername, out *UserResponse) error |
|
|
|
GetByUsercode(in *UserInfoByUsercode, out *UserResponse) error |
|
|
|
BindThird(in *Request, out *Response) error |
|
|
|
} |
|
|
|
|
|
|
|
// AcceptUserServiceClient accepts connections on the listener and serves requests
|
|
|
@ -465,6 +534,9 @@ func (c *UserServiceClient) GetByUsername(in *UserInfoByUsername, out *UserRespo |
|
|
|
func (c *UserServiceClient) GetByUsercode(in *UserInfoByUsercode, out *UserResponse) error { |
|
|
|
return c.Call("UserService.GetByUsercode", in, out) |
|
|
|
} |
|
|
|
func (c *UserServiceClient) BindThird(in *Request, out *Response) error { |
|
|
|
return c.Call("UserService.BindThird", in, out) |
|
|
|
} |
|
|
|
|
|
|
|
// DialUserService connects to an UserService at the specified network address.
|
|
|
|
func DialUserService(network, addr string) (*UserServiceClient, *rpc.Client, error) { |
|
|
|