Browse Source

修改pb文件

master
guzeng 3 years ago
parent
commit
22c85a2a18
1 changed files with 40 additions and 0 deletions
  1. +40
    -0
      user.pb.go

+ 40
- 0
user.pb.go View File

@ -150,6 +150,8 @@ type UserResponse struct {
Usercode *string `protobuf:"bytes,11,opt,name=usercode" json:"usercode,omitempty"`
GroupId *string `protobuf:"bytes,12,opt,name=group_id" json:"group_id,omitempty"`
Type *string `protobuf:"bytes,13,opt,name=type" json:"type,omitempty"`
ThirdId *string `protobuf:"bytes,14,opt,name=third_id" json:"third_id,omitempty"`
Platform *string `protobuf:"bytes,15,opt,name=platform" json:"platform,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
@ -248,6 +250,20 @@ func (m *UserResponse) GetType() string {
return ""
}
func (m *UserResponse) GetThirdId() string {
if m != nil && m.ThirdId != nil {
return *m.ThirdId
}
return ""
}
func (m *UserResponse) GetPlatform() string {
if m != nil && m.Platform != nil {
return *m.Platform
}
return ""
}
// 用户登录请求结构
type LoginRequest struct {
Dbname *string `protobuf:"bytes,1,opt,name=dbname" json:"dbname,omitempty"`
@ -297,6 +313,8 @@ type LoginResponse struct {
Usercode *string `protobuf:"bytes,12,opt,name=usercode" json:"usercode,omitempty"`
GroupId *string `protobuf:"bytes,13,opt,name=group_id" json:"group_id,omitempty"`
Type *string `protobuf:"bytes,14,opt,name=type" json:"type,omitempty"`
ThirdId *string `protobuf:"bytes,15,opt,name=third_id" json:"third_id,omitempty"`
Platform *string `protobuf:"bytes,16,opt,name=platform" json:"platform,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
@ -402,6 +420,20 @@ func (m *LoginResponse) GetType() string {
return ""
}
func (m *LoginResponse) GetThirdId() string {
if m != nil && m.ThirdId != nil {
return *m.ThirdId
}
return ""
}
func (m *LoginResponse) GetPlatform() string {
if m != nil && m.Platform != nil {
return *m.Platform
}
return ""
}
// 信息请求结构
type Request struct {
Data *string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
@ -483,6 +515,8 @@ type UserService interface {
GetById(in *Request, out *Response) error
GetBusinessInfo(in *Request, out *Response) error
GetAddressInfo(in *Request, out *Response) error
GetUserScore(in *Request, out *Response) error
GetUserRedEnvelope(in *Request, out *Response) error
}
// AcceptUserServiceClient accepts connections on the listener and serves requests
@ -587,6 +621,12 @@ func (c *UserServiceClient) GetBusinessInfo(in *Request, out *Response) error {
func (c *UserServiceClient) GetAddressInfo(in *Request, out *Response) error {
return c.Call("UserService.GetAddressInfo", in, out)
}
func (c *UserServiceClient) GetUserScore(in *Request, out *Response) error {
return c.Call("UserService.GetUserScore", in, out)
}
func (c *UserServiceClient) GetUserRedEnvelope(in *Request, out *Response) error {
return c.Call("UserService.GetUserRedEnvelope", in, out)
}
// DialUserService connects to an UserService at the specified network address.
func DialUserService(network, addr string) (*UserServiceClient, *rpc.Client, error) {


Loading…
Cancel
Save