Versions in this module Expand all Collapse all v0 v0.0.5 Feb 19, 2024 Changes in this version + const FriendService_AddGroup_FullMethodName + const FriendService_SearchUsers_FullMethodName + const SignUpService_AddUser_FullMethodName + const SignUpService_CheckValidCode_FullMethodName + const SignUpService_Login_FullMethodName + const SignUpService_RequestValid_FullMethodName + const UserService_GetUserInfo_FullMethodName + const UserService_UpdateUserSingle_FullMethodName + const UserService_UpdateUser_FullMethodName + var File_planetmsg_users_v1_base_proto protoreflect.FileDescriptor + var File_planetmsg_users_v1_friend_service_proto protoreflect.FileDescriptor + var File_planetmsg_users_v1_sign_up_service_proto protoreflect.FileDescriptor + var File_planetmsg_users_v1_user_service_proto protoreflect.FileDescriptor + var FriendService_ServiceDesc = grpc.ServiceDesc + var SignUpService_ServiceDesc = grpc.ServiceDesc + var UserService_ServiceDesc = grpc.ServiceDesc + func RegisterFriendServiceServer(s grpc.ServiceRegistrar, srv FriendServiceServer) + func RegisterSignUpServiceServer(s grpc.ServiceRegistrar, srv SignUpServiceServer) + func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer) + type CheckEmailReq struct + Email string + VaildCode string + func (*CheckEmailReq) Descriptor() ([]byte, []int) + func (*CheckEmailReq) ProtoMessage() + func (x *CheckEmailReq) GetEmail() string + func (x *CheckEmailReq) GetVaildCode() string + func (x *CheckEmailReq) ProtoReflect() protoreflect.Message + func (x *CheckEmailReq) Reset() + func (x *CheckEmailReq) String() string + type EmailReq struct + Email string + func (*EmailReq) Descriptor() ([]byte, []int) + func (*EmailReq) ProtoMessage() + func (x *EmailReq) GetEmail() string + func (x *EmailReq) ProtoReflect() protoreflect.Message + func (x *EmailReq) Reset() + func (x *EmailReq) String() string + type FriendServiceClient interface + AddGroup func(ctx context.Context, in *GroupReq, opts ...grpc.CallOption) (*MsgRsp, error) + SearchUsers func(ctx context.Context, in *NickReq, opts ...grpc.CallOption) (*User, error) + func NewFriendServiceClient(cc grpc.ClientConnInterface) FriendServiceClient + type FriendServiceServer interface + AddGroup func(context.Context, *GroupReq) (*MsgRsp, error) + SearchUsers func(context.Context, *NickReq) (*User, error) + type GroupReq struct + GroupName string + func (*GroupReq) Descriptor() ([]byte, []int) + func (*GroupReq) ProtoMessage() + func (x *GroupReq) GetGroupName() string + func (x *GroupReq) ProtoReflect() protoreflect.Message + func (x *GroupReq) Reset() + func (x *GroupReq) String() string + type IdReq struct + UserId int32 + func (*IdReq) Descriptor() ([]byte, []int) + func (*IdReq) ProtoMessage() + func (x *IdReq) GetUserId() int32 + func (x *IdReq) ProtoReflect() protoreflect.Message + func (x *IdReq) Reset() + func (x *IdReq) String() string + type LoginReq struct + LoginName string + Pwd string + func (*LoginReq) Descriptor() ([]byte, []int) + func (*LoginReq) ProtoMessage() + func (x *LoginReq) GetLoginName() string + func (x *LoginReq) GetPwd() string + func (x *LoginReq) ProtoReflect() protoreflect.Message + func (x *LoginReq) Reset() + func (x *LoginReq) String() string + type MsgRsp struct + Msg string + func (*MsgRsp) Descriptor() ([]byte, []int) + func (*MsgRsp) ProtoMessage() + func (x *MsgRsp) GetMsg() string + func (x *MsgRsp) ProtoReflect() protoreflect.Message + func (x *MsgRsp) Reset() + func (x *MsgRsp) String() string + type NickReq struct + NickName string + func (*NickReq) Descriptor() ([]byte, []int) + func (*NickReq) ProtoMessage() + func (x *NickReq) GetNickName() string + func (x *NickReq) ProtoReflect() protoreflect.Message + func (x *NickReq) Reset() + func (x *NickReq) String() string + type SignUpServiceClient interface + AddUser func(ctx context.Context, in *User, opts ...grpc.CallOption) (*MsgRsp, error) + CheckValidCode func(ctx context.Context, in *CheckEmailReq, opts ...grpc.CallOption) (*MsgRsp, error) + Login func(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*TokenRsp, error) + RequestValid func(ctx context.Context, in *EmailReq, opts ...grpc.CallOption) (*MsgRsp, error) + func NewSignUpServiceClient(cc grpc.ClientConnInterface) SignUpServiceClient + type SignUpServiceServer interface + AddUser func(context.Context, *User) (*MsgRsp, error) + CheckValidCode func(context.Context, *CheckEmailReq) (*MsgRsp, error) + Login func(context.Context, *LoginReq) (*TokenRsp, error) + RequestValid func(context.Context, *EmailReq) (*MsgRsp, error) + type TokenRsp struct + Atoken string + Msg string + Rtoken string + func (*TokenRsp) Descriptor() ([]byte, []int) + func (*TokenRsp) ProtoMessage() + func (x *TokenRsp) GetAtoken() string + func (x *TokenRsp) GetMsg() string + func (x *TokenRsp) GetRtoken() string + func (x *TokenRsp) ProtoReflect() protoreflect.Message + func (x *TokenRsp) Reset() + func (x *TokenRsp) String() string + type UnimplementedFriendServiceServer struct + func (UnimplementedFriendServiceServer) AddGroup(context.Context, *GroupReq) (*MsgRsp, error) + func (UnimplementedFriendServiceServer) SearchUsers(context.Context, *NickReq) (*User, error) + type UnimplementedSignUpServiceServer struct + func (UnimplementedSignUpServiceServer) AddUser(context.Context, *User) (*MsgRsp, error) + func (UnimplementedSignUpServiceServer) CheckValidCode(context.Context, *CheckEmailReq) (*MsgRsp, error) + func (UnimplementedSignUpServiceServer) Login(context.Context, *LoginReq) (*TokenRsp, error) + func (UnimplementedSignUpServiceServer) RequestValid(context.Context, *EmailReq) (*MsgRsp, error) + type UnimplementedUserServiceServer struct + func (UnimplementedUserServiceServer) GetUserInfo(context.Context, *IdReq) (*User, error) + func (UnimplementedUserServiceServer) UpdateUser(context.Context, *User) (*MsgRsp, error) + func (UnimplementedUserServiceServer) UpdateUserSingle(context.Context, *UpdateSingleReq) (*MsgRsp, error) + type UnsafeFriendServiceServer interface + type UnsafeSignUpServiceServer interface + type UnsafeUserServiceServer interface + type UpdateSingleReq struct + UpdateKey string + User *User + func (*UpdateSingleReq) Descriptor() ([]byte, []int) + func (*UpdateSingleReq) ProtoMessage() + func (x *UpdateSingleReq) GetUpdateKey() string + func (x *UpdateSingleReq) GetUser() *User + func (x *UpdateSingleReq) ProtoReflect() protoreflect.Message + func (x *UpdateSingleReq) Reset() + func (x *UpdateSingleReq) String() string + type User struct + Account string + BirthDay int64 + CreateTime int64 + Email string + Id int32 + LastLoginTime int64 + NickName string + Phone string + PicUrl string + Pwd string + Status int32 + func (*User) Descriptor() ([]byte, []int) + func (*User) ProtoMessage() + func (x *User) GetAccount() string + func (x *User) GetBirthDay() int64 + func (x *User) GetCreateTime() int64 + func (x *User) GetEmail() string + func (x *User) GetId() int32 + func (x *User) GetLastLoginTime() int64 + func (x *User) GetNickName() string + func (x *User) GetPhone() string + func (x *User) GetPicUrl() string + func (x *User) GetPwd() string + func (x *User) GetStatus() int32 + func (x *User) ProtoReflect() protoreflect.Message + func (x *User) Reset() + func (x *User) String() string + type UserServiceClient interface + GetUserInfo func(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*User, error) + UpdateUser func(ctx context.Context, in *User, opts ...grpc.CallOption) (*MsgRsp, error) + UpdateUserSingle func(ctx context.Context, in *UpdateSingleReq, opts ...grpc.CallOption) (*MsgRsp, error) + func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient + type UserServiceServer interface + GetUserInfo func(context.Context, *IdReq) (*User, error) + UpdateUser func(context.Context, *User) (*MsgRsp, error) + UpdateUserSingle func(context.Context, *UpdateSingleReq) (*MsgRsp, error)