Versions in this module Expand all Collapse all v1 v1.0.0 May 30, 2023 v0 v0.0.6 Jun 21, 2023 v0.0.5 Jun 13, 2023 v0.0.4 Jun 12, 2023 v0.0.3 Jun 2, 2023 v0.0.2 May 31, 2023 v0.0.1 May 31, 2023 Changes in this version + var File_user_proto protoreflect.FileDescriptor + var User_ServiceDesc = grpc.ServiceDesc + func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer) + type CheckResponse struct + Success bool + func (*CheckResponse) Descriptor() ([]byte, []int) + func (*CheckResponse) ProtoMessage() + func (x *CheckResponse) GetSuccess() bool + func (x *CheckResponse) ProtoReflect() protoreflect.Message + func (x *CheckResponse) Reset() + func (x *CheckResponse) String() string + type CreateUserInfo struct + Mobile string + NickName string + PassWord string + func (*CreateUserInfo) Descriptor() ([]byte, []int) + func (*CreateUserInfo) ProtoMessage() + func (x *CreateUserInfo) GetMobile() string + func (x *CreateUserInfo) GetNickName() string + func (x *CreateUserInfo) GetPassWord() string + func (x *CreateUserInfo) ProtoReflect() protoreflect.Message + func (x *CreateUserInfo) Reset() + func (x *CreateUserInfo) String() string + type IdRequest struct + Id int32 + func (*IdRequest) Descriptor() ([]byte, []int) + func (*IdRequest) ProtoMessage() + func (x *IdRequest) GetId() int32 + func (x *IdRequest) ProtoReflect() protoreflect.Message + func (x *IdRequest) Reset() + func (x *IdRequest) String() string + type MobileRequest struct + Mobile string + func (*MobileRequest) Descriptor() ([]byte, []int) + func (*MobileRequest) ProtoMessage() + func (x *MobileRequest) GetMobile() string + func (x *MobileRequest) ProtoReflect() protoreflect.Message + func (x *MobileRequest) Reset() + func (x *MobileRequest) String() string + type PageInfo struct + PSize uint32 + Pn uint32 + func (*PageInfo) Descriptor() ([]byte, []int) + func (*PageInfo) ProtoMessage() + func (x *PageInfo) GetPSize() uint32 + func (x *PageInfo) GetPn() uint32 + func (x *PageInfo) ProtoReflect() protoreflect.Message + func (x *PageInfo) Reset() + func (x *PageInfo) String() string + type PasswordCheckInfo struct + EncryptedPassword string + Password string + func (*PasswordCheckInfo) Descriptor() ([]byte, []int) + func (*PasswordCheckInfo) ProtoMessage() + func (x *PasswordCheckInfo) GetEncryptedPassword() string + func (x *PasswordCheckInfo) GetPassword() string + func (x *PasswordCheckInfo) ProtoReflect() protoreflect.Message + func (x *PasswordCheckInfo) Reset() + func (x *PasswordCheckInfo) String() string + type UnimplementedUserServer struct + func (UnimplementedUserServer) CheckPassWord(context.Context, *PasswordCheckInfo) (*CheckResponse, error) + func (UnimplementedUserServer) CreateUser(context.Context, *CreateUserInfo) (*UserInfoResponse, error) + func (UnimplementedUserServer) GetUserById(context.Context, *IdRequest) (*UserInfoResponse, error) + func (UnimplementedUserServer) GetUserByMobile(context.Context, *MobileRequest) (*UserInfoResponse, error) + func (UnimplementedUserServer) GetUserList(context.Context, *PageInfo) (*UserListResponse, error) + func (UnimplementedUserServer) UpdateUser(context.Context, *UpdateUserInfo) (*emptypb.Empty, error) + type UnsafeUserServer interface + type UpdateUserInfo struct + BirthDay uint64 + Gender string + Id int32 + NickName string + func (*UpdateUserInfo) Descriptor() ([]byte, []int) + func (*UpdateUserInfo) ProtoMessage() + func (x *UpdateUserInfo) GetBirthDay() uint64 + func (x *UpdateUserInfo) GetGender() string + func (x *UpdateUserInfo) GetId() int32 + func (x *UpdateUserInfo) GetNickName() string + func (x *UpdateUserInfo) ProtoReflect() protoreflect.Message + func (x *UpdateUserInfo) Reset() + func (x *UpdateUserInfo) String() string + type UserClient interface + CheckPassWord func(ctx context.Context, in *PasswordCheckInfo, opts ...grpc.CallOption) (*CheckResponse, error) + CreateUser func(ctx context.Context, in *CreateUserInfo, opts ...grpc.CallOption) (*UserInfoResponse, error) + GetUserById func(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*UserInfoResponse, error) + GetUserByMobile func(ctx context.Context, in *MobileRequest, opts ...grpc.CallOption) (*UserInfoResponse, error) + GetUserList func(ctx context.Context, in *PageInfo, opts ...grpc.CallOption) (*UserListResponse, error) + UpdateUser func(ctx context.Context, in *UpdateUserInfo, opts ...grpc.CallOption) (*emptypb.Empty, error) + func NewUserClient(cc grpc.ClientConnInterface) UserClient + type UserInfoResponse struct + BirthDay uint64 + Gender string + Id int32 + Mobile string + NickName string + PassWord string + Role int32 + func (*UserInfoResponse) Descriptor() ([]byte, []int) + func (*UserInfoResponse) ProtoMessage() + func (x *UserInfoResponse) GetBirthDay() uint64 + func (x *UserInfoResponse) GetGender() string + func (x *UserInfoResponse) GetId() int32 + func (x *UserInfoResponse) GetMobile() string + func (x *UserInfoResponse) GetNickName() string + func (x *UserInfoResponse) GetPassWord() string + func (x *UserInfoResponse) GetRole() int32 + func (x *UserInfoResponse) ProtoReflect() protoreflect.Message + func (x *UserInfoResponse) Reset() + func (x *UserInfoResponse) String() string + type UserListResponse struct + Data []*UserInfoResponse + Total int32 + func (*UserListResponse) Descriptor() ([]byte, []int) + func (*UserListResponse) ProtoMessage() + func (x *UserListResponse) GetData() []*UserInfoResponse + func (x *UserListResponse) GetTotal() int32 + func (x *UserListResponse) ProtoReflect() protoreflect.Message + func (x *UserListResponse) Reset() + func (x *UserListResponse) String() string + type UserServer interface + CheckPassWord func(context.Context, *PasswordCheckInfo) (*CheckResponse, error) + CreateUser func(context.Context, *CreateUserInfo) (*UserInfoResponse, error) + GetUserById func(context.Context, *IdRequest) (*UserInfoResponse, error) + GetUserByMobile func(context.Context, *MobileRequest) (*UserInfoResponse, error) + GetUserList func(context.Context, *PageInfo) (*UserListResponse, error) + UpdateUser func(context.Context, *UpdateUserInfo) (*emptypb.Empty, error)