Documentation ¶
Overview ¶
Package user is a generated protocol buffer package.
It is generated from these files:
user.proto
It has these top-level messages:
UserPasswordSignInReq UserPasswordSignInRsp GetUserInfoReq GetUserInfoRsp CheckUserTokenReq CheckUserTokenRsp
Index ¶
- func RegisterUserHandler(s server.Server, hdlr UserHandler, opts ...server.HandlerOption)
- type CheckUserTokenReq
- func (*CheckUserTokenReq) Descriptor() ([]byte, []int)
- func (m *CheckUserTokenReq) GetToken() string
- func (*CheckUserTokenReq) ProtoMessage()
- func (m *CheckUserTokenReq) Reset()
- func (m *CheckUserTokenReq) String() string
- func (m *CheckUserTokenReq) XXX_DiscardUnknown()
- func (m *CheckUserTokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CheckUserTokenReq) XXX_Merge(src proto.Message)
- func (m *CheckUserTokenReq) XXX_Size() int
- func (m *CheckUserTokenReq) XXX_Unmarshal(b []byte) error
- type CheckUserTokenRsp
- func (*CheckUserTokenRsp) Descriptor() ([]byte, []int)
- func (m *CheckUserTokenRsp) GetInstId() string
- func (m *CheckUserTokenRsp) GetMobile() string
- func (m *CheckUserTokenRsp) GetResult() bool
- func (m *CheckUserTokenRsp) GetUserId() int64
- func (*CheckUserTokenRsp) ProtoMessage()
- func (m *CheckUserTokenRsp) Reset()
- func (m *CheckUserTokenRsp) String() string
- func (m *CheckUserTokenRsp) XXX_DiscardUnknown()
- func (m *CheckUserTokenRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CheckUserTokenRsp) XXX_Merge(src proto.Message)
- func (m *CheckUserTokenRsp) XXX_Size() int
- func (m *CheckUserTokenRsp) XXX_Unmarshal(b []byte) error
- type GetUserInfoReq
- func (*GetUserInfoReq) Descriptor() ([]byte, []int)
- func (m *GetUserInfoReq) GetSessionKey() string
- func (m *GetUserInfoReq) GetUserId() int64
- func (*GetUserInfoReq) ProtoMessage()
- func (m *GetUserInfoReq) Reset()
- func (m *GetUserInfoReq) String() string
- func (m *GetUserInfoReq) XXX_DiscardUnknown()
- func (m *GetUserInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserInfoReq) XXX_Merge(src proto.Message)
- func (m *GetUserInfoReq) XXX_Size() int
- func (m *GetUserInfoReq) XXX_Unmarshal(b []byte) error
- type GetUserInfoRsp
- func (*GetUserInfoRsp) Descriptor() ([]byte, []int)
- func (m *GetUserInfoRsp) GetAvatar() string
- func (m *GetUserInfoRsp) GetCity() string
- func (m *GetUserInfoRsp) GetCorporation() string
- func (m *GetUserInfoRsp) GetCountry() string
- func (m *GetUserInfoRsp) GetEmail() string
- func (m *GetUserInfoRsp) GetGender() string
- func (m *GetUserInfoRsp) GetHasUnionId() bool
- func (m *GetUserInfoRsp) GetLanguage() string
- func (m *GetUserInfoRsp) GetLogo() string
- func (m *GetUserInfoRsp) GetMobile() string
- func (m *GetUserInfoRsp) GetName() string
- func (m *GetUserInfoRsp) GetPosition() string
- func (m *GetUserInfoRsp) GetProvince() string
- func (m *GetUserInfoRsp) GetRewardCode() string
- func (m *GetUserInfoRsp) GetSignature() string
- func (m *GetUserInfoRsp) GetUserDisplayName() string
- func (m *GetUserInfoRsp) GetUserId() int64
- func (m *GetUserInfoRsp) GetUserName() string
- func (*GetUserInfoRsp) ProtoMessage()
- func (m *GetUserInfoRsp) Reset()
- func (m *GetUserInfoRsp) String() string
- func (m *GetUserInfoRsp) XXX_DiscardUnknown()
- func (m *GetUserInfoRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserInfoRsp) XXX_Merge(src proto.Message)
- func (m *GetUserInfoRsp) XXX_Size() int
- func (m *GetUserInfoRsp) XXX_Unmarshal(b []byte) error
- type User
- func (h *User) CheckUserToken(ctx context.Context, in *CheckUserTokenReq, out *CheckUserTokenRsp) error
- func (h *User) GetUserInfo(ctx context.Context, in *GetUserInfoReq, out *GetUserInfoRsp) error
- func (h *User) UserPasswordSignIn(ctx context.Context, in *UserPasswordSignInReq, out *UserPasswordSignInRsp) error
- type UserHandler
- type UserPasswordSignInReq
- func (*UserPasswordSignInReq) Descriptor() ([]byte, []int)
- func (m *UserPasswordSignInReq) GetMobile() string
- func (m *UserPasswordSignInReq) GetPassword() string
- func (*UserPasswordSignInReq) ProtoMessage()
- func (m *UserPasswordSignInReq) Reset()
- func (m *UserPasswordSignInReq) String() string
- func (m *UserPasswordSignInReq) XXX_DiscardUnknown()
- func (m *UserPasswordSignInReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserPasswordSignInReq) XXX_Merge(src proto.Message)
- func (m *UserPasswordSignInReq) XXX_Size() int
- func (m *UserPasswordSignInReq) XXX_Unmarshal(b []byte) error
- type UserPasswordSignInRsp
- func (*UserPasswordSignInRsp) Descriptor() ([]byte, []int)
- func (m *UserPasswordSignInRsp) GetMobile() string
- func (m *UserPasswordSignInRsp) GetName() string
- func (m *UserPasswordSignInRsp) GetResult() bool
- func (m *UserPasswordSignInRsp) GetToken() string
- func (*UserPasswordSignInRsp) ProtoMessage()
- func (m *UserPasswordSignInRsp) Reset()
- func (m *UserPasswordSignInRsp) String() string
- func (m *UserPasswordSignInRsp) XXX_DiscardUnknown()
- func (m *UserPasswordSignInRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserPasswordSignInRsp) XXX_Merge(src proto.Message)
- func (m *UserPasswordSignInRsp) XXX_Size() int
- func (m *UserPasswordSignInRsp) XXX_Unmarshal(b []byte) error
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterUserHandler ¶
func RegisterUserHandler(s server.Server, hdlr UserHandler, opts ...server.HandlerOption)
Types ¶
type CheckUserTokenReq ¶
type CheckUserTokenReq struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CheckUserTokenReq) Descriptor ¶
func (*CheckUserTokenReq) Descriptor() ([]byte, []int)
func (*CheckUserTokenReq) GetToken ¶
func (m *CheckUserTokenReq) GetToken() string
func (*CheckUserTokenReq) ProtoMessage ¶
func (*CheckUserTokenReq) ProtoMessage()
func (*CheckUserTokenReq) Reset ¶
func (m *CheckUserTokenReq) Reset()
func (*CheckUserTokenReq) String ¶
func (m *CheckUserTokenReq) String() string
func (*CheckUserTokenReq) XXX_DiscardUnknown ¶
func (m *CheckUserTokenReq) XXX_DiscardUnknown()
func (*CheckUserTokenReq) XXX_Marshal ¶
func (m *CheckUserTokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CheckUserTokenReq) XXX_Merge ¶
func (m *CheckUserTokenReq) XXX_Merge(src proto.Message)
func (*CheckUserTokenReq) XXX_Size ¶
func (m *CheckUserTokenReq) XXX_Size() int
func (*CheckUserTokenReq) XXX_Unmarshal ¶
func (m *CheckUserTokenReq) XXX_Unmarshal(b []byte) error
type CheckUserTokenRsp ¶
type CheckUserTokenRsp struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` InstId string `protobuf:"bytes,3,opt,name=inst_id,json=instId,proto3" json:"inst_id,omitempty"` Mobile string `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CheckUserTokenRsp) Descriptor ¶
func (*CheckUserTokenRsp) Descriptor() ([]byte, []int)
func (*CheckUserTokenRsp) GetInstId ¶
func (m *CheckUserTokenRsp) GetInstId() string
func (*CheckUserTokenRsp) GetMobile ¶
func (m *CheckUserTokenRsp) GetMobile() string
func (*CheckUserTokenRsp) GetResult ¶
func (m *CheckUserTokenRsp) GetResult() bool
func (*CheckUserTokenRsp) GetUserId ¶
func (m *CheckUserTokenRsp) GetUserId() int64
func (*CheckUserTokenRsp) ProtoMessage ¶
func (*CheckUserTokenRsp) ProtoMessage()
func (*CheckUserTokenRsp) Reset ¶
func (m *CheckUserTokenRsp) Reset()
func (*CheckUserTokenRsp) String ¶
func (m *CheckUserTokenRsp) String() string
func (*CheckUserTokenRsp) XXX_DiscardUnknown ¶
func (m *CheckUserTokenRsp) XXX_DiscardUnknown()
func (*CheckUserTokenRsp) XXX_Marshal ¶
func (m *CheckUserTokenRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CheckUserTokenRsp) XXX_Merge ¶
func (m *CheckUserTokenRsp) XXX_Merge(src proto.Message)
func (*CheckUserTokenRsp) XXX_Size ¶
func (m *CheckUserTokenRsp) XXX_Size() int
func (*CheckUserTokenRsp) XXX_Unmarshal ¶
func (m *CheckUserTokenRsp) XXX_Unmarshal(b []byte) error
type GetUserInfoReq ¶
type GetUserInfoReq struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` SessionKey string `protobuf:"bytes,2,opt,name=session_key,json=sessionKey,proto3" json:"session_key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetUserInfoReq) Descriptor ¶
func (*GetUserInfoReq) Descriptor() ([]byte, []int)
func (*GetUserInfoReq) GetSessionKey ¶
func (m *GetUserInfoReq) GetSessionKey() string
func (*GetUserInfoReq) GetUserId ¶
func (m *GetUserInfoReq) GetUserId() int64
func (*GetUserInfoReq) ProtoMessage ¶
func (*GetUserInfoReq) ProtoMessage()
func (*GetUserInfoReq) Reset ¶
func (m *GetUserInfoReq) Reset()
func (*GetUserInfoReq) String ¶
func (m *GetUserInfoReq) String() string
func (*GetUserInfoReq) XXX_DiscardUnknown ¶
func (m *GetUserInfoReq) XXX_DiscardUnknown()
func (*GetUserInfoReq) XXX_Marshal ¶
func (m *GetUserInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetUserInfoReq) XXX_Merge ¶
func (m *GetUserInfoReq) XXX_Merge(src proto.Message)
func (*GetUserInfoReq) XXX_Size ¶
func (m *GetUserInfoReq) XXX_Size() int
func (*GetUserInfoReq) XXX_Unmarshal ¶
func (m *GetUserInfoReq) XXX_Unmarshal(b []byte) error
type GetUserInfoRsp ¶
type GetUserInfoRsp struct { UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` UserDisplayName string `protobuf:"bytes,2,opt,name=user_display_name,json=userDisplayName,proto3" json:"user_display_name,omitempty"` Gender string `protobuf:"bytes,3,opt,name=gender,proto3" json:"gender,omitempty"` Mobile string `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"` Signature string `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"` City string `protobuf:"bytes,6,opt,name=city,proto3" json:"city,omitempty"` Province string `protobuf:"bytes,7,opt,name=province,proto3" json:"province,omitempty"` Country string `protobuf:"bytes,8,opt,name=country,proto3" json:"country,omitempty"` Language string `protobuf:"bytes,9,opt,name=language,proto3" json:"language,omitempty"` Email string `protobuf:"bytes,10,opt,name=email,proto3" json:"email,omitempty"` HasUnionId bool `protobuf:"varint,11,opt,name=has_union_id,json=hasUnionId,proto3" json:"has_union_id,omitempty"` Avatar string `protobuf:"bytes,12,opt,name=avatar,proto3" json:"avatar,omitempty"` Logo string `protobuf:"bytes,13,opt,name=logo,proto3" json:"logo,omitempty"` RewardCode string `protobuf:"bytes,14,opt,name=reward_code,json=rewardCode,proto3" json:"reward_code,omitempty"` UserId int64 `protobuf:"varint,15,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Name string `protobuf:"bytes,16,opt,name=name,proto3" json:"name,omitempty"` Corporation string `protobuf:"bytes,17,opt,name=corporation,proto3" json:"corporation,omitempty"` Position string `protobuf:"bytes,18,opt,name=position,proto3" json:"position,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetUserInfoRsp) Descriptor ¶
func (*GetUserInfoRsp) Descriptor() ([]byte, []int)
func (*GetUserInfoRsp) GetAvatar ¶
func (m *GetUserInfoRsp) GetAvatar() string
func (*GetUserInfoRsp) GetCity ¶
func (m *GetUserInfoRsp) GetCity() string
func (*GetUserInfoRsp) GetCorporation ¶
func (m *GetUserInfoRsp) GetCorporation() string
func (*GetUserInfoRsp) GetCountry ¶
func (m *GetUserInfoRsp) GetCountry() string
func (*GetUserInfoRsp) GetEmail ¶
func (m *GetUserInfoRsp) GetEmail() string
func (*GetUserInfoRsp) GetGender ¶
func (m *GetUserInfoRsp) GetGender() string
func (*GetUserInfoRsp) GetHasUnionId ¶
func (m *GetUserInfoRsp) GetHasUnionId() bool
func (*GetUserInfoRsp) GetLanguage ¶
func (m *GetUserInfoRsp) GetLanguage() string
func (*GetUserInfoRsp) GetLogo ¶
func (m *GetUserInfoRsp) GetLogo() string
func (*GetUserInfoRsp) GetMobile ¶
func (m *GetUserInfoRsp) GetMobile() string
func (*GetUserInfoRsp) GetName ¶
func (m *GetUserInfoRsp) GetName() string
func (*GetUserInfoRsp) GetPosition ¶
func (m *GetUserInfoRsp) GetPosition() string
func (*GetUserInfoRsp) GetProvince ¶
func (m *GetUserInfoRsp) GetProvince() string
func (*GetUserInfoRsp) GetRewardCode ¶
func (m *GetUserInfoRsp) GetRewardCode() string
func (*GetUserInfoRsp) GetSignature ¶
func (m *GetUserInfoRsp) GetSignature() string
func (*GetUserInfoRsp) GetUserDisplayName ¶
func (m *GetUserInfoRsp) GetUserDisplayName() string
func (*GetUserInfoRsp) GetUserId ¶
func (m *GetUserInfoRsp) GetUserId() int64
func (*GetUserInfoRsp) GetUserName ¶
func (m *GetUserInfoRsp) GetUserName() string
func (*GetUserInfoRsp) ProtoMessage ¶
func (*GetUserInfoRsp) ProtoMessage()
func (*GetUserInfoRsp) Reset ¶
func (m *GetUserInfoRsp) Reset()
func (*GetUserInfoRsp) String ¶
func (m *GetUserInfoRsp) String() string
func (*GetUserInfoRsp) XXX_DiscardUnknown ¶
func (m *GetUserInfoRsp) XXX_DiscardUnknown()
func (*GetUserInfoRsp) XXX_Marshal ¶
func (m *GetUserInfoRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetUserInfoRsp) XXX_Merge ¶
func (m *GetUserInfoRsp) XXX_Merge(src proto.Message)
func (*GetUserInfoRsp) XXX_Size ¶
func (m *GetUserInfoRsp) XXX_Size() int
func (*GetUserInfoRsp) XXX_Unmarshal ¶
func (m *GetUserInfoRsp) XXX_Unmarshal(b []byte) error
type User ¶
type User struct {
UserHandler
}
func (*User) CheckUserToken ¶
func (h *User) CheckUserToken(ctx context.Context, in *CheckUserTokenReq, out *CheckUserTokenRsp) error
func (*User) GetUserInfo ¶
func (h *User) GetUserInfo(ctx context.Context, in *GetUserInfoReq, out *GetUserInfoRsp) error
func (*User) UserPasswordSignIn ¶
func (h *User) UserPasswordSignIn(ctx context.Context, in *UserPasswordSignInReq, out *UserPasswordSignInRsp) error
type UserHandler ¶
type UserHandler interface { UserPasswordSignIn(context.Context, *UserPasswordSignInReq, *UserPasswordSignInRsp) error GetUserInfo(context.Context, *GetUserInfoReq, *GetUserInfoRsp) error CheckUserToken(context.Context, *CheckUserTokenReq, *CheckUserTokenRsp) error }
type UserPasswordSignInReq ¶
type UserPasswordSignInReq struct { Mobile string `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserPasswordSignInReq) Descriptor ¶
func (*UserPasswordSignInReq) Descriptor() ([]byte, []int)
func (*UserPasswordSignInReq) GetMobile ¶
func (m *UserPasswordSignInReq) GetMobile() string
func (*UserPasswordSignInReq) GetPassword ¶
func (m *UserPasswordSignInReq) GetPassword() string
func (*UserPasswordSignInReq) ProtoMessage ¶
func (*UserPasswordSignInReq) ProtoMessage()
func (*UserPasswordSignInReq) Reset ¶
func (m *UserPasswordSignInReq) Reset()
func (*UserPasswordSignInReq) String ¶
func (m *UserPasswordSignInReq) String() string
func (*UserPasswordSignInReq) XXX_DiscardUnknown ¶
func (m *UserPasswordSignInReq) XXX_DiscardUnknown()
func (*UserPasswordSignInReq) XXX_Marshal ¶
func (m *UserPasswordSignInReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserPasswordSignInReq) XXX_Merge ¶
func (m *UserPasswordSignInReq) XXX_Merge(src proto.Message)
func (*UserPasswordSignInReq) XXX_Size ¶
func (m *UserPasswordSignInReq) XXX_Size() int
func (*UserPasswordSignInReq) XXX_Unmarshal ¶
func (m *UserPasswordSignInReq) XXX_Unmarshal(b []byte) error
type UserPasswordSignInRsp ¶
type UserPasswordSignInRsp struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Mobile string `protobuf:"bytes,2,opt,name=mobile,proto3" json:"mobile,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Result bool `protobuf:"varint,4,opt,name=result,proto3" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserPasswordSignInRsp) Descriptor ¶
func (*UserPasswordSignInRsp) Descriptor() ([]byte, []int)
func (*UserPasswordSignInRsp) GetMobile ¶
func (m *UserPasswordSignInRsp) GetMobile() string
func (*UserPasswordSignInRsp) GetName ¶
func (m *UserPasswordSignInRsp) GetName() string
func (*UserPasswordSignInRsp) GetResult ¶
func (m *UserPasswordSignInRsp) GetResult() bool
func (*UserPasswordSignInRsp) GetToken ¶
func (m *UserPasswordSignInRsp) GetToken() string
func (*UserPasswordSignInRsp) ProtoMessage ¶
func (*UserPasswordSignInRsp) ProtoMessage()
func (*UserPasswordSignInRsp) Reset ¶
func (m *UserPasswordSignInRsp) Reset()
func (*UserPasswordSignInRsp) String ¶
func (m *UserPasswordSignInRsp) String() string
func (*UserPasswordSignInRsp) XXX_DiscardUnknown ¶
func (m *UserPasswordSignInRsp) XXX_DiscardUnknown()
func (*UserPasswordSignInRsp) XXX_Marshal ¶
func (m *UserPasswordSignInRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserPasswordSignInRsp) XXX_Merge ¶
func (m *UserPasswordSignInRsp) XXX_Merge(src proto.Message)
func (*UserPasswordSignInRsp) XXX_Size ¶
func (m *UserPasswordSignInRsp) XXX_Size() int
func (*UserPasswordSignInRsp) XXX_Unmarshal ¶
func (m *UserPasswordSignInRsp) XXX_Unmarshal(b []byte) error
type UserService ¶
type UserService interface { UserPasswordSignIn(ctx context.Context, in *UserPasswordSignInReq, opts ...client.CallOption) (*UserPasswordSignInRsp, error) GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...client.CallOption) (*GetUserInfoRsp, error) CheckUserToken(ctx context.Context, in *CheckUserTokenReq, opts ...client.CallOption) (*CheckUserTokenRsp, error) }
func UserServiceClient ¶
func UserServiceClient(serviceName string, c client.Client) UserService
Click to show internal directories.
Click to hide internal directories.