Documentation ¶
Index ¶
- Variables
- func RegisterUserServiceHTTPServer(r gin.IRouter, srv UserServiceHTTPServer)
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type BatchGetUsersReply
- func (*BatchGetUsersReply) Descriptor() ([]byte, []int)
- func (m *BatchGetUsersReply) GetUsers() []*User
- func (m *BatchGetUsersReply) Marshal() (dAtA []byte, err error)
- func (m *BatchGetUsersReply) MarshalTo(dAtA []byte) (int, error)
- func (m *BatchGetUsersReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BatchGetUsersReply) ProtoMessage()
- func (m *BatchGetUsersReply) Reset()
- func (m *BatchGetUsersReply) Size() (n int)
- func (m *BatchGetUsersReply) String() string
- func (m *BatchGetUsersReply) Unmarshal(dAtA []byte) error
- func (m *BatchGetUsersReply) XXX_DiscardUnknown()
- func (m *BatchGetUsersReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BatchGetUsersReply) XXX_Merge(src proto.Message)
- func (m *BatchGetUsersReply) XXX_Size() int
- func (m *BatchGetUsersReply) XXX_Unmarshal(b []byte) error
- type BatchGetUsersRequest
- func (*BatchGetUsersRequest) Descriptor() ([]byte, []int)
- func (m *BatchGetUsersRequest) GetIds() []int64
- func (m *BatchGetUsersRequest) Marshal() (dAtA []byte, err error)
- func (m *BatchGetUsersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *BatchGetUsersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BatchGetUsersRequest) ProtoMessage()
- func (m *BatchGetUsersRequest) Reset()
- func (m *BatchGetUsersRequest) Size() (n int)
- func (m *BatchGetUsersRequest) String() string
- func (m *BatchGetUsersRequest) Unmarshal(dAtA []byte) error
- func (m *BatchGetUsersRequest) XXX_DiscardUnknown()
- func (m *BatchGetUsersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BatchGetUsersRequest) XXX_Merge(src proto.Message)
- func (m *BatchGetUsersRequest) XXX_Size() int
- func (m *BatchGetUsersRequest) XXX_Unmarshal(b []byte) error
- type CreateUserReply
- func (*CreateUserReply) Descriptor() ([]byte, []int)
- func (m *CreateUserReply) GetEmail() string
- func (m *CreateUserReply) GetId() int64
- func (m *CreateUserReply) GetUsername() string
- func (m *CreateUserReply) Marshal() (dAtA []byte, err error)
- func (m *CreateUserReply) MarshalTo(dAtA []byte) (int, error)
- func (m *CreateUserReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CreateUserReply) ProtoMessage()
- func (m *CreateUserReply) Reset()
- func (m *CreateUserReply) Size() (n int)
- func (m *CreateUserReply) String() string
- func (m *CreateUserReply) Unmarshal(dAtA []byte) error
- func (m *CreateUserReply) XXX_DiscardUnknown()
- func (m *CreateUserReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateUserReply) XXX_Merge(src proto.Message)
- func (m *CreateUserReply) XXX_Size() int
- func (m *CreateUserReply) XXX_Unmarshal(b []byte) error
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)
- func (m *CreateUserRequest) GetEmail() string
- func (m *CreateUserRequest) GetPassword() string
- func (m *CreateUserRequest) GetUsername() string
- func (m *CreateUserRequest) Marshal() (dAtA []byte, err error)
- func (m *CreateUserRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *CreateUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CreateUserRequest) ProtoMessage()
- func (m *CreateUserRequest) Reset()
- func (m *CreateUserRequest) Size() (n int)
- func (m *CreateUserRequest) String() string
- func (m *CreateUserRequest) Unmarshal(dAtA []byte) error
- func (m *CreateUserRequest) XXX_DiscardUnknown()
- func (m *CreateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateUserRequest) XXX_Merge(src proto.Message)
- func (m *CreateUserRequest) XXX_Size() int
- func (m *CreateUserRequest) XXX_Unmarshal(b []byte) error
- type GenderType
- type GetUserReply
- func (*GetUserReply) Descriptor() ([]byte, []int)
- func (m *GetUserReply) GetUser() *User
- func (m *GetUserReply) Marshal() (dAtA []byte, err error)
- func (m *GetUserReply) MarshalTo(dAtA []byte) (int, error)
- func (m *GetUserReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetUserReply) ProtoMessage()
- func (m *GetUserReply) Reset()
- func (m *GetUserReply) Size() (n int)
- func (m *GetUserReply) String() string
- func (m *GetUserReply) Unmarshal(dAtA []byte) error
- func (m *GetUserReply) XXX_DiscardUnknown()
- func (m *GetUserReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserReply) XXX_Merge(src proto.Message)
- func (m *GetUserReply) XXX_Size() int
- func (m *GetUserReply) XXX_Unmarshal(b []byte) error
- type GetUserRequest
- func (*GetUserRequest) Descriptor() ([]byte, []int)
- func (m *GetUserRequest) GetId() string
- func (m *GetUserRequest) Marshal() (dAtA []byte, err error)
- func (m *GetUserRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetUserRequest) ProtoMessage()
- func (m *GetUserRequest) Reset()
- func (m *GetUserRequest) Size() (n int)
- func (m *GetUserRequest) String() string
- func (m *GetUserRequest) Unmarshal(dAtA []byte) error
- func (m *GetUserRequest) XXX_DiscardUnknown()
- func (m *GetUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserRequest) XXX_Merge(src proto.Message)
- func (m *GetUserRequest) XXX_Size() int
- func (m *GetUserRequest) XXX_Unmarshal(b []byte) error
- type LoginReply
- func (*LoginReply) Descriptor() ([]byte, []int)
- func (m *LoginReply) GetAccessToken() string
- func (m *LoginReply) GetUid() string
- func (m *LoginReply) Marshal() (dAtA []byte, err error)
- func (m *LoginReply) MarshalTo(dAtA []byte) (int, error)
- func (m *LoginReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LoginReply) ProtoMessage()
- func (m *LoginReply) Reset()
- func (m *LoginReply) Size() (n int)
- func (m *LoginReply) String() string
- func (m *LoginReply) Unmarshal(dAtA []byte) error
- func (m *LoginReply) XXX_DiscardUnknown()
- func (m *LoginReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LoginReply) XXX_Merge(src proto.Message)
- func (m *LoginReply) XXX_Size() int
- func (m *LoginReply) XXX_Unmarshal(b []byte) error
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)
- func (m *LoginRequest) GetEmail() string
- func (m *LoginRequest) GetPassword() string
- func (m *LoginRequest) GetUsername() string
- func (m *LoginRequest) Marshal() (dAtA []byte, err error)
- func (m *LoginRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *LoginRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LoginRequest) ProtoMessage()
- func (m *LoginRequest) Reset()
- func (m *LoginRequest) Size() (n int)
- func (m *LoginRequest) String() string
- func (m *LoginRequest) Unmarshal(dAtA []byte) error
- func (m *LoginRequest) XXX_DiscardUnknown()
- func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LoginRequest) XXX_Merge(src proto.Message)
- func (m *LoginRequest) XXX_Size() int
- func (m *LoginRequest) XXX_Unmarshal(b []byte) error
- type LogoutReply
- func (*LogoutReply) Descriptor() ([]byte, []int)
- func (m *LogoutReply) Marshal() (dAtA []byte, err error)
- func (m *LogoutReply) MarshalTo(dAtA []byte) (int, error)
- func (m *LogoutReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LogoutReply) ProtoMessage()
- func (m *LogoutReply) Reset()
- func (m *LogoutReply) Size() (n int)
- func (m *LogoutReply) String() string
- func (m *LogoutReply) Unmarshal(dAtA []byte) error
- func (m *LogoutReply) XXX_DiscardUnknown()
- func (m *LogoutReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogoutReply) XXX_Merge(src proto.Message)
- func (m *LogoutReply) XXX_Size() int
- func (m *LogoutReply) XXX_Unmarshal(b []byte) error
- type LogoutRequest
- func (*LogoutRequest) Descriptor() ([]byte, []int)
- func (m *LogoutRequest) GetAccessToken() string
- func (m *LogoutRequest) GetId() int64
- func (m *LogoutRequest) Marshal() (dAtA []byte, err error)
- func (m *LogoutRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *LogoutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LogoutRequest) ProtoMessage()
- func (m *LogoutRequest) Reset()
- func (m *LogoutRequest) Size() (n int)
- func (m *LogoutRequest) String() string
- func (m *LogoutRequest) Unmarshal(dAtA []byte) error
- func (m *LogoutRequest) XXX_DiscardUnknown()
- func (m *LogoutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogoutRequest) XXX_Merge(src proto.Message)
- func (m *LogoutRequest) XXX_Size() int
- func (m *LogoutRequest) XXX_Unmarshal(b []byte) error
- type RegisterReply
- func (*RegisterReply) Descriptor() ([]byte, []int)
- func (m *RegisterReply) GetId() int64
- func (m *RegisterReply) GetUsername() string
- func (m *RegisterReply) Marshal() (dAtA []byte, err error)
- func (m *RegisterReply) MarshalTo(dAtA []byte) (int, error)
- func (m *RegisterReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RegisterReply) ProtoMessage()
- func (m *RegisterReply) Reset()
- func (m *RegisterReply) Size() (n int)
- func (m *RegisterReply) String() string
- func (m *RegisterReply) Unmarshal(dAtA []byte) error
- func (m *RegisterReply) XXX_DiscardUnknown()
- func (m *RegisterReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterReply) XXX_Merge(src proto.Message)
- func (m *RegisterReply) XXX_Size() int
- func (m *RegisterReply) XXX_Unmarshal(b []byte) error
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)
- func (m *RegisterRequest) GetEmail() string
- func (m *RegisterRequest) GetPassword() string
- func (m *RegisterRequest) GetUsername() string
- func (m *RegisterRequest) Marshal() (dAtA []byte, err error)
- func (m *RegisterRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *RegisterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RegisterRequest) ProtoMessage()
- func (m *RegisterRequest) Reset()
- func (m *RegisterRequest) Size() (n int)
- func (m *RegisterRequest) String() string
- func (m *RegisterRequest) Unmarshal(dAtA []byte) error
- func (m *RegisterRequest) XXX_DiscardUnknown()
- func (m *RegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterRequest) XXX_Merge(src proto.Message)
- func (m *RegisterRequest) XXX_Size() int
- func (m *RegisterRequest) XXX_Unmarshal(b []byte) error
- type StatusType
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserReply, error)
- func (UnimplementedUserServiceServer) Login(context.Context, *LoginRequest) (*LoginReply, error)
- func (UnimplementedUserServiceServer) Logout(context.Context, *LogoutRequest) (*LogoutReply, error)
- func (UnimplementedUserServiceServer) Register(context.Context, *RegisterRequest) (*RegisterReply, error)
- func (UnimplementedUserServiceServer) UpdatePassword(context.Context, *UpdatePasswordRequest) (*UpdatePasswordReply, error)
- func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error)
- type UnsafeUserServiceServer
- type UpdatePasswordReply
- func (*UpdatePasswordReply) Descriptor() ([]byte, []int)
- func (m *UpdatePasswordReply) Marshal() (dAtA []byte, err error)
- func (m *UpdatePasswordReply) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdatePasswordReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UpdatePasswordReply) ProtoMessage()
- func (m *UpdatePasswordReply) Reset()
- func (m *UpdatePasswordReply) Size() (n int)
- func (m *UpdatePasswordReply) String() string
- func (m *UpdatePasswordReply) Unmarshal(dAtA []byte) error
- func (m *UpdatePasswordReply) XXX_DiscardUnknown()
- func (m *UpdatePasswordReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdatePasswordReply) XXX_Merge(src proto.Message)
- func (m *UpdatePasswordReply) XXX_Size() int
- func (m *UpdatePasswordReply) XXX_Unmarshal(b []byte) error
- type UpdatePasswordRequest
- func (*UpdatePasswordRequest) Descriptor() ([]byte, []int)
- func (m *UpdatePasswordRequest) GetConfirmPassword() string
- func (m *UpdatePasswordRequest) GetId() string
- func (m *UpdatePasswordRequest) GetNewPassword() string
- func (m *UpdatePasswordRequest) GetPassword() string
- func (m *UpdatePasswordRequest) Marshal() (dAtA []byte, err error)
- func (m *UpdatePasswordRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdatePasswordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UpdatePasswordRequest) ProtoMessage()
- func (m *UpdatePasswordRequest) Reset()
- func (m *UpdatePasswordRequest) Size() (n int)
- func (m *UpdatePasswordRequest) String() string
- func (m *UpdatePasswordRequest) Unmarshal(dAtA []byte) error
- func (m *UpdatePasswordRequest) XXX_DiscardUnknown()
- func (m *UpdatePasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdatePasswordRequest) XXX_Merge(src proto.Message)
- func (m *UpdatePasswordRequest) XXX_Size() int
- func (m *UpdatePasswordRequest) XXX_Unmarshal(b []byte) error
- type UpdateUserReply
- func (*UpdateUserReply) Descriptor() ([]byte, []int)
- func (m *UpdateUserReply) Marshal() (dAtA []byte, err error)
- func (m *UpdateUserReply) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdateUserReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UpdateUserReply) ProtoMessage()
- func (m *UpdateUserReply) Reset()
- func (m *UpdateUserReply) Size() (n int)
- func (m *UpdateUserReply) String() string
- func (m *UpdateUserReply) Unmarshal(dAtA []byte) error
- func (m *UpdateUserReply) XXX_DiscardUnknown()
- func (m *UpdateUserReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateUserReply) XXX_Merge(src proto.Message)
- func (m *UpdateUserReply) XXX_Size() int
- func (m *UpdateUserReply) XXX_Unmarshal(b []byte) error
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)
- func (m *UpdateUserRequest) GetAvatar() string
- func (m *UpdateUserRequest) GetBio() string
- func (m *UpdateUserRequest) GetBirthday() string
- func (m *UpdateUserRequest) GetEmail() string
- func (m *UpdateUserRequest) GetGender() GenderType
- func (m *UpdateUserRequest) GetId() string
- func (m *UpdateUserRequest) GetLoginAt() int64
- func (m *UpdateUserRequest) GetNickname() string
- func (m *UpdateUserRequest) GetPhone() string
- func (m *UpdateUserRequest) GetStatus() StatusType
- func (m *UpdateUserRequest) GetUpdatedAt() int64
- func (m *UpdateUserRequest) GetUsername() string
- func (m *UpdateUserRequest) Marshal() (dAtA []byte, err error)
- func (m *UpdateUserRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdateUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UpdateUserRequest) ProtoMessage()
- func (m *UpdateUserRequest) Reset()
- func (m *UpdateUserRequest) Size() (n int)
- func (m *UpdateUserRequest) String() string
- func (m *UpdateUserRequest) Unmarshal(dAtA []byte) error
- func (m *UpdateUserRequest) XXX_DiscardUnknown()
- func (m *UpdateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateUserRequest) XXX_Merge(src proto.Message)
- func (m *UpdateUserRequest) XXX_Size() int
- func (m *UpdateUserRequest) XXX_Unmarshal(b []byte) error
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetAvatar() string
- func (m *User) GetBio() string
- func (m *User) GetBirthday() string
- func (m *User) GetCreatedAt() int64
- func (m *User) GetEmail() string
- func (m *User) GetGender() GenderType
- func (m *User) GetId() string
- func (m *User) GetLoginAt() int64
- func (m *User) GetNickname() string
- func (m *User) GetPhone() string
- func (m *User) GetStatus() StatusType
- func (m *User) GetUsername() string
- func (m *User) Marshal() (dAtA []byte, err error)
- func (m *User) MarshalTo(dAtA []byte) (int, error)
- func (m *User) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) Size() (n int)
- func (m *User) String() string
- func (m *User) Unmarshal(dAtA []byte) error
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
- type UserService
- func (s *UserService) GetUser_0(ctx *gin.Context)
- func (s *UserService) Login_0(ctx *gin.Context)
- func (s *UserService) Logout_0(ctx *gin.Context)
- func (s *UserService) RegisterService()
- func (s *UserService) Register_0(ctx *gin.Context)
- func (s *UserService) UpdatePassword_0(ctx *gin.Context)
- func (s *UserService) UpdateUser_0(ctx *gin.Context)
- type UserServiceClient
- type UserServiceHTTPServer
- type UserServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthUser = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowUser = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupUser = fmt.Errorf("proto: unexpected end of group") )
var GenderType_name = map[int32]string{
0: "UNKNOWN",
1: "MALE",
2: "FEMALE",
}
var GenderType_value = map[string]int32{
"UNKNOWN": 0,
"MALE": 1,
"FEMALE": 2,
}
var StatusType_name = map[int32]string{
0: "NORMAL",
1: "DELETE",
2: "Ban",
}
var StatusType_value = map[string]int32{
"NORMAL": 0,
"DELETE": 1,
"Ban": 2,
}
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.micro.user.v1.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _UserService_Register_Handler, }, { MethodName: "Login", Handler: _UserService_Login_Handler, }, { MethodName: "Logout", Handler: _UserService_Logout_Handler, }, { MethodName: "GetUser", Handler: _UserService_GetUser_Handler, }, { MethodName: "UpdateUser", Handler: _UserService_UpdateUser_Handler, }, { MethodName: "UpdatePassword", Handler: _UserService_UpdatePassword_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/micro/user/v1/user.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserServiceHTTPServer ¶
func RegisterUserServiceHTTPServer(r gin.IRouter, srv UserServiceHTTPServer)
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type BatchGetUsersReply ¶
type BatchGetUsersReply struct {
Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
}
func (*BatchGetUsersReply) Descriptor ¶
func (*BatchGetUsersReply) Descriptor() ([]byte, []int)
func (*BatchGetUsersReply) GetUsers ¶
func (m *BatchGetUsersReply) GetUsers() []*User
func (*BatchGetUsersReply) Marshal ¶
func (m *BatchGetUsersReply) Marshal() (dAtA []byte, err error)
func (*BatchGetUsersReply) MarshalTo ¶
func (m *BatchGetUsersReply) MarshalTo(dAtA []byte) (int, error)
func (*BatchGetUsersReply) MarshalToSizedBuffer ¶
func (m *BatchGetUsersReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BatchGetUsersReply) ProtoMessage ¶
func (*BatchGetUsersReply) ProtoMessage()
func (*BatchGetUsersReply) Reset ¶
func (m *BatchGetUsersReply) Reset()
func (*BatchGetUsersReply) Size ¶
func (m *BatchGetUsersReply) Size() (n int)
func (*BatchGetUsersReply) String ¶
func (m *BatchGetUsersReply) String() string
func (*BatchGetUsersReply) Unmarshal ¶
func (m *BatchGetUsersReply) Unmarshal(dAtA []byte) error
func (*BatchGetUsersReply) XXX_DiscardUnknown ¶
func (m *BatchGetUsersReply) XXX_DiscardUnknown()
func (*BatchGetUsersReply) XXX_Marshal ¶
func (m *BatchGetUsersReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BatchGetUsersReply) XXX_Merge ¶
func (m *BatchGetUsersReply) XXX_Merge(src proto.Message)
func (*BatchGetUsersReply) XXX_Size ¶
func (m *BatchGetUsersReply) XXX_Size() int
func (*BatchGetUsersReply) XXX_Unmarshal ¶
func (m *BatchGetUsersReply) XXX_Unmarshal(b []byte) error
type BatchGetUsersRequest ¶
type BatchGetUsersRequest struct {
Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
}
func (*BatchGetUsersRequest) Descriptor ¶
func (*BatchGetUsersRequest) Descriptor() ([]byte, []int)
func (*BatchGetUsersRequest) GetIds ¶
func (m *BatchGetUsersRequest) GetIds() []int64
func (*BatchGetUsersRequest) Marshal ¶
func (m *BatchGetUsersRequest) Marshal() (dAtA []byte, err error)
func (*BatchGetUsersRequest) MarshalTo ¶
func (m *BatchGetUsersRequest) MarshalTo(dAtA []byte) (int, error)
func (*BatchGetUsersRequest) MarshalToSizedBuffer ¶
func (m *BatchGetUsersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BatchGetUsersRequest) ProtoMessage ¶
func (*BatchGetUsersRequest) ProtoMessage()
func (*BatchGetUsersRequest) Reset ¶
func (m *BatchGetUsersRequest) Reset()
func (*BatchGetUsersRequest) Size ¶
func (m *BatchGetUsersRequest) Size() (n int)
func (*BatchGetUsersRequest) String ¶
func (m *BatchGetUsersRequest) String() string
func (*BatchGetUsersRequest) Unmarshal ¶
func (m *BatchGetUsersRequest) Unmarshal(dAtA []byte) error
func (*BatchGetUsersRequest) XXX_DiscardUnknown ¶
func (m *BatchGetUsersRequest) XXX_DiscardUnknown()
func (*BatchGetUsersRequest) XXX_Marshal ¶
func (m *BatchGetUsersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BatchGetUsersRequest) XXX_Merge ¶
func (m *BatchGetUsersRequest) XXX_Merge(src proto.Message)
func (*BatchGetUsersRequest) XXX_Size ¶
func (m *BatchGetUsersRequest) XXX_Size() int
func (*BatchGetUsersRequest) XXX_Unmarshal ¶
func (m *BatchGetUsersRequest) XXX_Unmarshal(b []byte) error
type CreateUserReply ¶
type CreateUserReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` }
func (*CreateUserReply) Descriptor ¶
func (*CreateUserReply) Descriptor() ([]byte, []int)
func (*CreateUserReply) GetEmail ¶
func (m *CreateUserReply) GetEmail() string
func (*CreateUserReply) GetId ¶
func (m *CreateUserReply) GetId() int64
func (*CreateUserReply) GetUsername ¶
func (m *CreateUserReply) GetUsername() string
func (*CreateUserReply) Marshal ¶
func (m *CreateUserReply) Marshal() (dAtA []byte, err error)
func (*CreateUserReply) MarshalToSizedBuffer ¶
func (m *CreateUserReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CreateUserReply) ProtoMessage ¶
func (*CreateUserReply) ProtoMessage()
func (*CreateUserReply) Reset ¶
func (m *CreateUserReply) Reset()
func (*CreateUserReply) Size ¶
func (m *CreateUserReply) Size() (n int)
func (*CreateUserReply) String ¶
func (m *CreateUserReply) String() string
func (*CreateUserReply) Unmarshal ¶
func (m *CreateUserReply) Unmarshal(dAtA []byte) error
func (*CreateUserReply) XXX_DiscardUnknown ¶
func (m *CreateUserReply) XXX_DiscardUnknown()
func (*CreateUserReply) XXX_Marshal ¶
func (m *CreateUserReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateUserReply) XXX_Merge ¶
func (m *CreateUserReply) XXX_Merge(src proto.Message)
func (*CreateUserReply) XXX_Size ¶
func (m *CreateUserReply) XXX_Size() int
func (*CreateUserReply) XXX_Unmarshal ¶
func (m *CreateUserReply) XXX_Unmarshal(b []byte) error
type CreateUserRequest ¶
type CreateUserRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` }
func (*CreateUserRequest) Descriptor ¶
func (*CreateUserRequest) Descriptor() ([]byte, []int)
func (*CreateUserRequest) GetEmail ¶
func (m *CreateUserRequest) GetEmail() string
func (*CreateUserRequest) GetPassword ¶
func (m *CreateUserRequest) GetPassword() string
func (*CreateUserRequest) GetUsername ¶
func (m *CreateUserRequest) GetUsername() string
func (*CreateUserRequest) Marshal ¶
func (m *CreateUserRequest) Marshal() (dAtA []byte, err error)
func (*CreateUserRequest) MarshalTo ¶
func (m *CreateUserRequest) MarshalTo(dAtA []byte) (int, error)
func (*CreateUserRequest) MarshalToSizedBuffer ¶
func (m *CreateUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) Reset ¶
func (m *CreateUserRequest) Reset()
func (*CreateUserRequest) Size ¶
func (m *CreateUserRequest) Size() (n int)
func (*CreateUserRequest) String ¶
func (m *CreateUserRequest) String() string
func (*CreateUserRequest) Unmarshal ¶
func (m *CreateUserRequest) Unmarshal(dAtA []byte) error
func (*CreateUserRequest) XXX_DiscardUnknown ¶
func (m *CreateUserRequest) XXX_DiscardUnknown()
func (*CreateUserRequest) XXX_Marshal ¶
func (m *CreateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateUserRequest) XXX_Merge ¶
func (m *CreateUserRequest) XXX_Merge(src proto.Message)
func (*CreateUserRequest) XXX_Size ¶
func (m *CreateUserRequest) XXX_Size() int
func (*CreateUserRequest) XXX_Unmarshal ¶
func (m *CreateUserRequest) XXX_Unmarshal(b []byte) error
type GenderType ¶
type GenderType int32
const ( GenderType_UNKNOWN GenderType = 0 GenderType_MALE GenderType = 1 GenderType_FEMALE GenderType = 2 )
func (GenderType) EnumDescriptor ¶
func (GenderType) EnumDescriptor() ([]byte, []int)
func (GenderType) String ¶
func (x GenderType) String() string
type GetUserReply ¶
type GetUserReply struct {
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
}
func (*GetUserReply) Descriptor ¶
func (*GetUserReply) Descriptor() ([]byte, []int)
func (*GetUserReply) GetUser ¶
func (m *GetUserReply) GetUser() *User
func (*GetUserReply) Marshal ¶
func (m *GetUserReply) Marshal() (dAtA []byte, err error)
func (*GetUserReply) MarshalToSizedBuffer ¶
func (m *GetUserReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetUserReply) ProtoMessage ¶
func (*GetUserReply) ProtoMessage()
func (*GetUserReply) Reset ¶
func (m *GetUserReply) Reset()
func (*GetUserReply) Size ¶
func (m *GetUserReply) Size() (n int)
func (*GetUserReply) String ¶
func (m *GetUserReply) String() string
func (*GetUserReply) Unmarshal ¶
func (m *GetUserReply) Unmarshal(dAtA []byte) error
func (*GetUserReply) XXX_DiscardUnknown ¶
func (m *GetUserReply) XXX_DiscardUnknown()
func (*GetUserReply) XXX_Marshal ¶
func (m *GetUserReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetUserReply) XXX_Merge ¶
func (m *GetUserReply) XXX_Merge(src proto.Message)
func (*GetUserReply) XXX_Size ¶
func (m *GetUserReply) XXX_Size() int
func (*GetUserReply) XXX_Unmarshal ¶
func (m *GetUserReply) XXX_Unmarshal(b []byte) error
type GetUserRequest ¶
type GetUserRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" uri:"id"`
}
func (*GetUserRequest) Descriptor ¶
func (*GetUserRequest) Descriptor() ([]byte, []int)
func (*GetUserRequest) GetId ¶
func (m *GetUserRequest) GetId() string
func (*GetUserRequest) Marshal ¶
func (m *GetUserRequest) Marshal() (dAtA []byte, err error)
func (*GetUserRequest) MarshalToSizedBuffer ¶
func (m *GetUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) Reset ¶
func (m *GetUserRequest) Reset()
func (*GetUserRequest) Size ¶
func (m *GetUserRequest) Size() (n int)
func (*GetUserRequest) String ¶
func (m *GetUserRequest) String() string
func (*GetUserRequest) Unmarshal ¶
func (m *GetUserRequest) Unmarshal(dAtA []byte) error
func (*GetUserRequest) XXX_DiscardUnknown ¶
func (m *GetUserRequest) XXX_DiscardUnknown()
func (*GetUserRequest) XXX_Marshal ¶
func (m *GetUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetUserRequest) XXX_Merge ¶
func (m *GetUserRequest) XXX_Merge(src proto.Message)
func (*GetUserRequest) XXX_Size ¶
func (m *GetUserRequest) XXX_Size() int
func (*GetUserRequest) XXX_Unmarshal ¶
func (m *GetUserRequest) XXX_Unmarshal(b []byte) error
type LoginReply ¶
type LoginReply struct { Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` }
func (*LoginReply) Descriptor ¶
func (*LoginReply) Descriptor() ([]byte, []int)
func (*LoginReply) GetAccessToken ¶
func (m *LoginReply) GetAccessToken() string
func (*LoginReply) GetUid ¶
func (m *LoginReply) GetUid() string
func (*LoginReply) Marshal ¶
func (m *LoginReply) Marshal() (dAtA []byte, err error)
func (*LoginReply) MarshalToSizedBuffer ¶
func (m *LoginReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LoginReply) ProtoMessage ¶
func (*LoginReply) ProtoMessage()
func (*LoginReply) Reset ¶
func (m *LoginReply) Reset()
func (*LoginReply) Size ¶
func (m *LoginReply) Size() (n int)
func (*LoginReply) String ¶
func (m *LoginReply) String() string
func (*LoginReply) Unmarshal ¶
func (m *LoginReply) Unmarshal(dAtA []byte) error
func (*LoginReply) XXX_DiscardUnknown ¶
func (m *LoginReply) XXX_DiscardUnknown()
func (*LoginReply) XXX_Marshal ¶
func (m *LoginReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LoginReply) XXX_Merge ¶
func (m *LoginReply) XXX_Merge(src proto.Message)
func (*LoginReply) XXX_Size ¶
func (m *LoginReply) XXX_Size() int
func (*LoginReply) XXX_Unmarshal ¶
func (m *LoginReply) XXX_Unmarshal(b []byte) error
type LoginRequest ¶
type LoginRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` }
func (*LoginRequest) Descriptor ¶
func (*LoginRequest) Descriptor() ([]byte, []int)
func (*LoginRequest) GetEmail ¶
func (m *LoginRequest) GetEmail() string
func (*LoginRequest) GetPassword ¶
func (m *LoginRequest) GetPassword() string
func (*LoginRequest) GetUsername ¶
func (m *LoginRequest) GetUsername() string
func (*LoginRequest) Marshal ¶
func (m *LoginRequest) Marshal() (dAtA []byte, err error)
func (*LoginRequest) MarshalToSizedBuffer ¶
func (m *LoginRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) Reset ¶
func (m *LoginRequest) Reset()
func (*LoginRequest) Size ¶
func (m *LoginRequest) Size() (n int)
func (*LoginRequest) String ¶
func (m *LoginRequest) String() string
func (*LoginRequest) Unmarshal ¶
func (m *LoginRequest) Unmarshal(dAtA []byte) error
func (*LoginRequest) XXX_DiscardUnknown ¶
func (m *LoginRequest) XXX_DiscardUnknown()
func (*LoginRequest) XXX_Marshal ¶
func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LoginRequest) XXX_Merge ¶
func (m *LoginRequest) XXX_Merge(src proto.Message)
func (*LoginRequest) XXX_Size ¶
func (m *LoginRequest) XXX_Size() int
func (*LoginRequest) XXX_Unmarshal ¶
func (m *LoginRequest) XXX_Unmarshal(b []byte) error
type LogoutReply ¶
type LogoutReply struct { }
func (*LogoutReply) Descriptor ¶
func (*LogoutReply) Descriptor() ([]byte, []int)
func (*LogoutReply) Marshal ¶
func (m *LogoutReply) Marshal() (dAtA []byte, err error)
func (*LogoutReply) MarshalToSizedBuffer ¶
func (m *LogoutReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LogoutReply) ProtoMessage ¶
func (*LogoutReply) ProtoMessage()
func (*LogoutReply) Reset ¶
func (m *LogoutReply) Reset()
func (*LogoutReply) Size ¶
func (m *LogoutReply) Size() (n int)
func (*LogoutReply) String ¶
func (m *LogoutReply) String() string
func (*LogoutReply) Unmarshal ¶
func (m *LogoutReply) Unmarshal(dAtA []byte) error
func (*LogoutReply) XXX_DiscardUnknown ¶
func (m *LogoutReply) XXX_DiscardUnknown()
func (*LogoutReply) XXX_Marshal ¶
func (m *LogoutReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogoutReply) XXX_Merge ¶
func (m *LogoutReply) XXX_Merge(src proto.Message)
func (*LogoutReply) XXX_Size ¶
func (m *LogoutReply) XXX_Size() int
func (*LogoutReply) XXX_Unmarshal ¶
func (m *LogoutReply) XXX_Unmarshal(b []byte) error
type LogoutRequest ¶
type LogoutRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` }
func (*LogoutRequest) Descriptor ¶
func (*LogoutRequest) Descriptor() ([]byte, []int)
func (*LogoutRequest) GetAccessToken ¶
func (m *LogoutRequest) GetAccessToken() string
func (*LogoutRequest) GetId ¶
func (m *LogoutRequest) GetId() int64
func (*LogoutRequest) Marshal ¶
func (m *LogoutRequest) Marshal() (dAtA []byte, err error)
func (*LogoutRequest) MarshalToSizedBuffer ¶
func (m *LogoutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LogoutRequest) ProtoMessage ¶
func (*LogoutRequest) ProtoMessage()
func (*LogoutRequest) Reset ¶
func (m *LogoutRequest) Reset()
func (*LogoutRequest) Size ¶
func (m *LogoutRequest) Size() (n int)
func (*LogoutRequest) String ¶
func (m *LogoutRequest) String() string
func (*LogoutRequest) Unmarshal ¶
func (m *LogoutRequest) Unmarshal(dAtA []byte) error
func (*LogoutRequest) XXX_DiscardUnknown ¶
func (m *LogoutRequest) XXX_DiscardUnknown()
func (*LogoutRequest) XXX_Marshal ¶
func (m *LogoutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogoutRequest) XXX_Merge ¶
func (m *LogoutRequest) XXX_Merge(src proto.Message)
func (*LogoutRequest) XXX_Size ¶
func (m *LogoutRequest) XXX_Size() int
func (*LogoutRequest) XXX_Unmarshal ¶
func (m *LogoutRequest) XXX_Unmarshal(b []byte) error
type RegisterReply ¶
type RegisterReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` }
func (*RegisterReply) Descriptor ¶
func (*RegisterReply) Descriptor() ([]byte, []int)
func (*RegisterReply) GetId ¶
func (m *RegisterReply) GetId() int64
func (*RegisterReply) GetUsername ¶
func (m *RegisterReply) GetUsername() string
func (*RegisterReply) Marshal ¶
func (m *RegisterReply) Marshal() (dAtA []byte, err error)
func (*RegisterReply) MarshalToSizedBuffer ¶
func (m *RegisterReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RegisterReply) ProtoMessage ¶
func (*RegisterReply) ProtoMessage()
func (*RegisterReply) Reset ¶
func (m *RegisterReply) Reset()
func (*RegisterReply) Size ¶
func (m *RegisterReply) Size() (n int)
func (*RegisterReply) String ¶
func (m *RegisterReply) String() string
func (*RegisterReply) Unmarshal ¶
func (m *RegisterReply) Unmarshal(dAtA []byte) error
func (*RegisterReply) XXX_DiscardUnknown ¶
func (m *RegisterReply) XXX_DiscardUnknown()
func (*RegisterReply) XXX_Marshal ¶
func (m *RegisterReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegisterReply) XXX_Merge ¶
func (m *RegisterReply) XXX_Merge(src proto.Message)
func (*RegisterReply) XXX_Size ¶
func (m *RegisterReply) XXX_Size() int
func (*RegisterReply) XXX_Unmarshal ¶
func (m *RegisterReply) XXX_Unmarshal(b []byte) error
type RegisterRequest ¶
type RegisterRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` }
func (*RegisterRequest) Descriptor ¶
func (*RegisterRequest) Descriptor() ([]byte, []int)
func (*RegisterRequest) GetEmail ¶
func (m *RegisterRequest) GetEmail() string
func (*RegisterRequest) GetPassword ¶
func (m *RegisterRequest) GetPassword() string
func (*RegisterRequest) GetUsername ¶
func (m *RegisterRequest) GetUsername() string
func (*RegisterRequest) Marshal ¶
func (m *RegisterRequest) Marshal() (dAtA []byte, err error)
func (*RegisterRequest) MarshalToSizedBuffer ¶
func (m *RegisterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) Reset ¶
func (m *RegisterRequest) Reset()
func (*RegisterRequest) Size ¶
func (m *RegisterRequest) Size() (n int)
func (*RegisterRequest) String ¶
func (m *RegisterRequest) String() string
func (*RegisterRequest) Unmarshal ¶
func (m *RegisterRequest) Unmarshal(dAtA []byte) error
func (*RegisterRequest) XXX_DiscardUnknown ¶
func (m *RegisterRequest) XXX_DiscardUnknown()
func (*RegisterRequest) XXX_Marshal ¶
func (m *RegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegisterRequest) XXX_Merge ¶
func (m *RegisterRequest) XXX_Merge(src proto.Message)
func (*RegisterRequest) XXX_Size ¶
func (m *RegisterRequest) XXX_Size() int
func (*RegisterRequest) XXX_Unmarshal ¶
func (m *RegisterRequest) XXX_Unmarshal(b []byte) error
type StatusType ¶
type StatusType int32
const ( StatusType_NORMAL StatusType = 0 StatusType_DELETE StatusType = 1 StatusType_Ban StatusType = 2 )
func (StatusType) EnumDescriptor ¶
func (StatusType) EnumDescriptor() ([]byte, []int)
func (StatusType) String ¶
func (x StatusType) String() string
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) GetUser ¶
func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserReply, error)
func (UnimplementedUserServiceServer) Login ¶
func (UnimplementedUserServiceServer) Login(context.Context, *LoginRequest) (*LoginReply, error)
func (UnimplementedUserServiceServer) Logout ¶
func (UnimplementedUserServiceServer) Logout(context.Context, *LogoutRequest) (*LogoutReply, error)
func (UnimplementedUserServiceServer) Register ¶
func (UnimplementedUserServiceServer) Register(context.Context, *RegisterRequest) (*RegisterReply, error)
func (UnimplementedUserServiceServer) UpdatePassword ¶
func (UnimplementedUserServiceServer) UpdatePassword(context.Context, *UpdatePasswordRequest) (*UpdatePasswordReply, error)
func (UnimplementedUserServiceServer) UpdateUser ¶
func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error)
type UnsafeUserServiceServer ¶
type UnsafeUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
type UpdatePasswordReply ¶
type UpdatePasswordReply struct { }
func (*UpdatePasswordReply) Descriptor ¶
func (*UpdatePasswordReply) Descriptor() ([]byte, []int)
func (*UpdatePasswordReply) Marshal ¶
func (m *UpdatePasswordReply) Marshal() (dAtA []byte, err error)
func (*UpdatePasswordReply) MarshalTo ¶
func (m *UpdatePasswordReply) MarshalTo(dAtA []byte) (int, error)
func (*UpdatePasswordReply) MarshalToSizedBuffer ¶
func (m *UpdatePasswordReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpdatePasswordReply) ProtoMessage ¶
func (*UpdatePasswordReply) ProtoMessage()
func (*UpdatePasswordReply) Reset ¶
func (m *UpdatePasswordReply) Reset()
func (*UpdatePasswordReply) Size ¶
func (m *UpdatePasswordReply) Size() (n int)
func (*UpdatePasswordReply) String ¶
func (m *UpdatePasswordReply) String() string
func (*UpdatePasswordReply) Unmarshal ¶
func (m *UpdatePasswordReply) Unmarshal(dAtA []byte) error
func (*UpdatePasswordReply) XXX_DiscardUnknown ¶
func (m *UpdatePasswordReply) XXX_DiscardUnknown()
func (*UpdatePasswordReply) XXX_Marshal ¶
func (m *UpdatePasswordReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdatePasswordReply) XXX_Merge ¶
func (m *UpdatePasswordReply) XXX_Merge(src proto.Message)
func (*UpdatePasswordReply) XXX_Size ¶
func (m *UpdatePasswordReply) XXX_Size() int
func (*UpdatePasswordReply) XXX_Unmarshal ¶
func (m *UpdatePasswordReply) XXX_Unmarshal(b []byte) error
type UpdatePasswordRequest ¶
type UpdatePasswordRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` NewPassword string `protobuf:"bytes,3,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` ConfirmPassword string `protobuf:"bytes,4,opt,name=confirm_password,json=confirmPassword,proto3" json:"confirm_password,omitempty"` }
func (*UpdatePasswordRequest) Descriptor ¶
func (*UpdatePasswordRequest) Descriptor() ([]byte, []int)
func (*UpdatePasswordRequest) GetConfirmPassword ¶
func (m *UpdatePasswordRequest) GetConfirmPassword() string
func (*UpdatePasswordRequest) GetId ¶
func (m *UpdatePasswordRequest) GetId() string
func (*UpdatePasswordRequest) GetNewPassword ¶
func (m *UpdatePasswordRequest) GetNewPassword() string
func (*UpdatePasswordRequest) GetPassword ¶
func (m *UpdatePasswordRequest) GetPassword() string
func (*UpdatePasswordRequest) Marshal ¶
func (m *UpdatePasswordRequest) Marshal() (dAtA []byte, err error)
func (*UpdatePasswordRequest) MarshalTo ¶
func (m *UpdatePasswordRequest) MarshalTo(dAtA []byte) (int, error)
func (*UpdatePasswordRequest) MarshalToSizedBuffer ¶
func (m *UpdatePasswordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpdatePasswordRequest) ProtoMessage ¶
func (*UpdatePasswordRequest) ProtoMessage()
func (*UpdatePasswordRequest) Reset ¶
func (m *UpdatePasswordRequest) Reset()
func (*UpdatePasswordRequest) Size ¶
func (m *UpdatePasswordRequest) Size() (n int)
func (*UpdatePasswordRequest) String ¶
func (m *UpdatePasswordRequest) String() string
func (*UpdatePasswordRequest) Unmarshal ¶
func (m *UpdatePasswordRequest) Unmarshal(dAtA []byte) error
func (*UpdatePasswordRequest) XXX_DiscardUnknown ¶
func (m *UpdatePasswordRequest) XXX_DiscardUnknown()
func (*UpdatePasswordRequest) XXX_Marshal ¶
func (m *UpdatePasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdatePasswordRequest) XXX_Merge ¶
func (m *UpdatePasswordRequest) XXX_Merge(src proto.Message)
func (*UpdatePasswordRequest) XXX_Size ¶
func (m *UpdatePasswordRequest) XXX_Size() int
func (*UpdatePasswordRequest) XXX_Unmarshal ¶
func (m *UpdatePasswordRequest) XXX_Unmarshal(b []byte) error
type UpdateUserReply ¶
type UpdateUserReply struct { }
func (*UpdateUserReply) Descriptor ¶
func (*UpdateUserReply) Descriptor() ([]byte, []int)
func (*UpdateUserReply) Marshal ¶
func (m *UpdateUserReply) Marshal() (dAtA []byte, err error)
func (*UpdateUserReply) MarshalToSizedBuffer ¶
func (m *UpdateUserReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpdateUserReply) ProtoMessage ¶
func (*UpdateUserReply) ProtoMessage()
func (*UpdateUserReply) Reset ¶
func (m *UpdateUserReply) Reset()
func (*UpdateUserReply) Size ¶
func (m *UpdateUserReply) Size() (n int)
func (*UpdateUserReply) String ¶
func (m *UpdateUserReply) String() string
func (*UpdateUserReply) Unmarshal ¶
func (m *UpdateUserReply) Unmarshal(dAtA []byte) error
func (*UpdateUserReply) XXX_DiscardUnknown ¶
func (m *UpdateUserReply) XXX_DiscardUnknown()
func (*UpdateUserReply) XXX_Marshal ¶
func (m *UpdateUserReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateUserReply) XXX_Merge ¶
func (m *UpdateUserReply) XXX_Merge(src proto.Message)
func (*UpdateUserReply) XXX_Size ¶
func (m *UpdateUserReply) XXX_Size() int
func (*UpdateUserReply) XXX_Unmarshal ¶
func (m *UpdateUserReply) XXX_Unmarshal(b []byte) error
type UpdateUserRequest ¶
type UpdateUserRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"` LoginAt int64 `protobuf:"varint,5,opt,name=login_at,json=loginAt,proto3" json:"login_at,omitempty"` Status StatusType `protobuf:"varint,6,opt,name=status,proto3,enum=api.micro.user.v1.StatusType" json:"status,omitempty"` Nickname string `protobuf:"bytes,7,opt,name=nickname,proto3" json:"nickname,omitempty"` Avatar string `protobuf:"bytes,8,opt,name=avatar,proto3" json:"avatar,omitempty"` Gender GenderType `protobuf:"varint,9,opt,name=gender,proto3,enum=api.micro.user.v1.GenderType" json:"gender,omitempty"` Birthday string `protobuf:"bytes,10,opt,name=birthday,proto3" json:"birthday,omitempty"` Bio string `protobuf:"bytes,11,opt,name=bio,proto3" json:"bio,omitempty"` UpdatedAt int64 `protobuf:"varint,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` }
func (*UpdateUserRequest) Descriptor ¶
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
func (*UpdateUserRequest) GetAvatar ¶
func (m *UpdateUserRequest) GetAvatar() string
func (*UpdateUserRequest) GetBio ¶
func (m *UpdateUserRequest) GetBio() string
func (*UpdateUserRequest) GetBirthday ¶
func (m *UpdateUserRequest) GetBirthday() string
func (*UpdateUserRequest) GetEmail ¶
func (m *UpdateUserRequest) GetEmail() string
func (*UpdateUserRequest) GetGender ¶
func (m *UpdateUserRequest) GetGender() GenderType
func (*UpdateUserRequest) GetId ¶
func (m *UpdateUserRequest) GetId() string
func (*UpdateUserRequest) GetLoginAt ¶
func (m *UpdateUserRequest) GetLoginAt() int64
func (*UpdateUserRequest) GetNickname ¶
func (m *UpdateUserRequest) GetNickname() string
func (*UpdateUserRequest) GetPhone ¶
func (m *UpdateUserRequest) GetPhone() string
func (*UpdateUserRequest) GetStatus ¶
func (m *UpdateUserRequest) GetStatus() StatusType
func (*UpdateUserRequest) GetUpdatedAt ¶
func (m *UpdateUserRequest) GetUpdatedAt() int64
func (*UpdateUserRequest) GetUsername ¶
func (m *UpdateUserRequest) GetUsername() string
func (*UpdateUserRequest) Marshal ¶
func (m *UpdateUserRequest) Marshal() (dAtA []byte, err error)
func (*UpdateUserRequest) MarshalTo ¶
func (m *UpdateUserRequest) MarshalTo(dAtA []byte) (int, error)
func (*UpdateUserRequest) MarshalToSizedBuffer ¶
func (m *UpdateUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpdateUserRequest) ProtoMessage ¶
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) Reset ¶
func (m *UpdateUserRequest) Reset()
func (*UpdateUserRequest) Size ¶
func (m *UpdateUserRequest) Size() (n int)
func (*UpdateUserRequest) String ¶
func (m *UpdateUserRequest) String() string
func (*UpdateUserRequest) Unmarshal ¶
func (m *UpdateUserRequest) Unmarshal(dAtA []byte) error
func (*UpdateUserRequest) XXX_DiscardUnknown ¶
func (m *UpdateUserRequest) XXX_DiscardUnknown()
func (*UpdateUserRequest) XXX_Marshal ¶
func (m *UpdateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateUserRequest) XXX_Merge ¶
func (m *UpdateUserRequest) XXX_Merge(src proto.Message)
func (*UpdateUserRequest) XXX_Size ¶
func (m *UpdateUserRequest) XXX_Size() int
func (*UpdateUserRequest) XXX_Unmarshal ¶
func (m *UpdateUserRequest) XXX_Unmarshal(b []byte) error
type User ¶
type User struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email"` Phone string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone"` LoginAt int64 `protobuf:"varint,5,opt,name=login_at,json=loginAt,proto3" json:"login_at"` Status StatusType `protobuf:"varint,6,opt,name=status,proto3,enum=api.micro.user.v1.StatusType" json:"status"` Nickname string `protobuf:"bytes,7,opt,name=nickname,proto3" json:"nickname"` Avatar string `protobuf:"bytes,8,opt,name=avatar,proto3" json:"avatar"` Gender GenderType `protobuf:"varint,9,opt,name=gender,proto3,enum=api.micro.user.v1.GenderType" json:"gender"` Birthday string `protobuf:"bytes,10,opt,name=birthday,proto3" json:"birthday"` Bio string `protobuf:"bytes,11,opt,name=bio,proto3" json:"bio"` CreatedAt int64 `protobuf:"varint,12,opt,name=created_at,json=createdAt,proto3" json:"created_at"` }
user info
func (*User) Descriptor ¶
func (*User) GetBirthday ¶
func (*User) GetCreatedAt ¶
func (*User) GetGender ¶
func (m *User) GetGender() GenderType
func (*User) GetLoginAt ¶
func (*User) GetNickname ¶
func (*User) GetStatus ¶
func (m *User) GetStatus() StatusType
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Unmarshal ¶
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func (*UserService) GetUser_0 ¶
func (s *UserService) GetUser_0(ctx *gin.Context)
func (*UserService) Login_0 ¶
func (s *UserService) Login_0(ctx *gin.Context)
func (*UserService) Logout_0 ¶
func (s *UserService) Logout_0(ctx *gin.Context)
func (*UserService) RegisterService ¶
func (s *UserService) RegisterService()
func (*UserService) Register_0 ¶
func (s *UserService) Register_0(ctx *gin.Context)
func (*UserService) UpdatePassword_0 ¶
func (s *UserService) UpdatePassword_0(ctx *gin.Context)
func (*UserService) UpdateUser_0 ¶
func (s *UserService) UpdateUser_0(ctx *gin.Context)
type UserServiceClient ¶
type UserServiceClient interface { // auth // 注册 Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterReply, error) // 登录 Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginReply, error) // 退出 Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutReply, error) // 获取用户信息 GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserReply, error) // 更新用户信息 UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserReply, error) // 修改用户密码 UpdatePassword(ctx context.Context, in *UpdatePasswordRequest, opts ...grpc.CallOption) (*UpdatePasswordReply, error) }
UserServiceClient is the client API for UserService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceHTTPServer ¶
type UserServiceHTTPServer interface { GetUser(context.Context, *GetUserRequest) (*GetUserReply, error) Login(context.Context, *LoginRequest) (*LoginReply, error) Logout(context.Context, *LogoutRequest) (*LogoutReply, error) Register(context.Context, *RegisterRequest) (*RegisterReply, error) UpdatePassword(context.Context, *UpdatePasswordRequest) (*UpdatePasswordReply, error) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error) }
type UserServiceServer ¶
type UserServiceServer interface { // auth // 注册 Register(context.Context, *RegisterRequest) (*RegisterReply, error) // 登录 Login(context.Context, *LoginRequest) (*LoginReply, error) // 退出 Logout(context.Context, *LogoutRequest) (*LogoutReply, error) // 获取用户信息 GetUser(context.Context, *GetUserRequest) (*GetUserReply, error) // 更新用户信息 UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error) // 修改用户密码 UpdatePassword(context.Context, *UpdatePasswordRequest) (*UpdatePasswordReply, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility