Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterSignUpServiceServer(s grpc.ServiceRegistrar, srv SignUpServiceServer)
- type CheckEmailReq
- func (*CheckEmailReq) Descriptor() ([]byte, []int)deprecated
- func (x *CheckEmailReq) GetEmail() string
- func (x *CheckEmailReq) GetVaildCode() string
- func (*CheckEmailReq) ProtoMessage()
- func (x *CheckEmailReq) ProtoReflect() protoreflect.Message
- func (x *CheckEmailReq) Reset()
- func (x *CheckEmailReq) String() string
- type EmailReq
- type LoginReq
- type MsgRsp
- type SignUpServiceClient
- type SignUpServiceServer
- type TokenRsp
- func (*TokenRsp) Descriptor() ([]byte, []int)deprecated
- func (x *TokenRsp) GetAtoken() string
- func (x *TokenRsp) GetMsg() string
- func (x *TokenRsp) GetRtoken() string
- func (*TokenRsp) ProtoMessage()
- func (x *TokenRsp) ProtoReflect() protoreflect.Message
- func (x *TokenRsp) Reset()
- func (x *TokenRsp) String() string
- type UnimplementedSignUpServiceServer
- 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 UnsafeSignUpServiceServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- 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 (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
Constants ¶
const ( SignUpService_AddUser_FullMethodName = "/signUpIdl.SignUpService/AddUser" SignUpService_RequestValid_FullMethodName = "/signUpIdl.SignUpService/RequestValid" SignUpService_CheckValidCode_FullMethodName = "/signUpIdl.SignUpService/CheckValidCode" SignUpService_Login_FullMethodName = "/signUpIdl.SignUpService/Login" )
Variables ¶
var File_planetmsg_signUp_sign_up_service_proto protoreflect.FileDescriptor
var SignUpService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "signUpIdl.SignUpService", HandlerType: (*SignUpServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddUser", Handler: _SignUpService_AddUser_Handler, }, { MethodName: "RequestValid", Handler: _SignUpService_RequestValid_Handler, }, { MethodName: "CheckValidCode", Handler: _SignUpService_CheckValidCode_Handler, }, { MethodName: "Login", Handler: _SignUpService_Login_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "planetmsg/signUp/sign_up_service.proto", }
SignUpService_ServiceDesc is the grpc.ServiceDesc for SignUpService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSignUpServiceServer ¶
func RegisterSignUpServiceServer(s grpc.ServiceRegistrar, srv SignUpServiceServer)
Types ¶
type CheckEmailReq ¶
type CheckEmailReq struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` VaildCode string `protobuf:"bytes,2,opt,name=vaildCode,proto3" json:"vaildCode,omitempty"` // contains filtered or unexported fields }
func (*CheckEmailReq) Descriptor
deprecated
func (*CheckEmailReq) Descriptor() ([]byte, []int)
Deprecated: Use CheckEmailReq.ProtoReflect.Descriptor instead.
func (*CheckEmailReq) GetEmail ¶
func (x *CheckEmailReq) GetEmail() string
func (*CheckEmailReq) GetVaildCode ¶
func (x *CheckEmailReq) GetVaildCode() string
func (*CheckEmailReq) ProtoMessage ¶
func (*CheckEmailReq) ProtoMessage()
func (*CheckEmailReq) ProtoReflect ¶
func (x *CheckEmailReq) ProtoReflect() protoreflect.Message
func (*CheckEmailReq) Reset ¶
func (x *CheckEmailReq) Reset()
func (*CheckEmailReq) String ¶
func (x *CheckEmailReq) String() string
type EmailReq ¶
type EmailReq struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*EmailReq) Descriptor
deprecated
func (*EmailReq) ProtoMessage ¶
func (*EmailReq) ProtoMessage()
func (*EmailReq) ProtoReflect ¶
func (x *EmailReq) ProtoReflect() protoreflect.Message
type LoginReq ¶
type LoginReq struct { LoginName string `protobuf:"bytes,1,opt,name=loginName,proto3" json:"loginName,omitempty"` Pwd string `protobuf:"bytes,2,opt,name=pwd,proto3" json:"pwd,omitempty"` // contains filtered or unexported fields }
func (*LoginReq) Descriptor
deprecated
func (*LoginReq) GetLoginName ¶
func (*LoginReq) ProtoMessage ¶
func (*LoginReq) ProtoMessage()
func (*LoginReq) ProtoReflect ¶
func (x *LoginReq) ProtoReflect() protoreflect.Message
type MsgRsp ¶
type MsgRsp struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*MsgRsp) Descriptor
deprecated
func (*MsgRsp) ProtoMessage ¶
func (*MsgRsp) ProtoMessage()
func (*MsgRsp) ProtoReflect ¶
func (x *MsgRsp) ProtoReflect() protoreflect.Message
type SignUpServiceClient ¶
type SignUpServiceClient interface { // 添加用户 AddUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*MsgRsp, error) // 申请验证码(提供用户邮箱),保存redis三分钟 RequestValid(ctx context.Context, in *EmailReq, opts ...grpc.CallOption) (*MsgRsp, error) // 验证邮箱验证码 CheckValidCode(ctx context.Context, in *CheckEmailReq, opts ...grpc.CallOption) (*MsgRsp, error) // 用户登陆验证 Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*TokenRsp, error) }
SignUpServiceClient is the client API for SignUpService 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 NewSignUpServiceClient ¶
func NewSignUpServiceClient(cc grpc.ClientConnInterface) SignUpServiceClient
type SignUpServiceServer ¶
type SignUpServiceServer interface { // 添加用户 AddUser(context.Context, *User) (*MsgRsp, error) // 申请验证码(提供用户邮箱),保存redis三分钟 RequestValid(context.Context, *EmailReq) (*MsgRsp, error) // 验证邮箱验证码 CheckValidCode(context.Context, *CheckEmailReq) (*MsgRsp, error) // 用户登陆验证 Login(context.Context, *LoginReq) (*TokenRsp, error) // contains filtered or unexported methods }
SignUpServiceServer is the server API for SignUpService service. All implementations must embed UnimplementedSignUpServiceServer for forward compatibility
type TokenRsp ¶
type TokenRsp struct { Atoken string `protobuf:"bytes,1,opt,name=Atoken,proto3" json:"Atoken,omitempty"` Rtoken string `protobuf:"bytes,2,opt,name=Rtoken,proto3" json:"Rtoken,omitempty"` Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*TokenRsp) Descriptor
deprecated
func (*TokenRsp) ProtoMessage ¶
func (*TokenRsp) ProtoMessage()
func (*TokenRsp) ProtoReflect ¶
func (x *TokenRsp) ProtoReflect() protoreflect.Message
type UnimplementedSignUpServiceServer ¶
type UnimplementedSignUpServiceServer struct { }
UnimplementedSignUpServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSignUpServiceServer) CheckValidCode ¶
func (UnimplementedSignUpServiceServer) CheckValidCode(context.Context, *CheckEmailReq) (*MsgRsp, error)
func (UnimplementedSignUpServiceServer) RequestValid ¶
type UnsafeSignUpServiceServer ¶
type UnsafeSignUpServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSignUpServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SignUpServiceServer will result in compilation errors.
type User ¶
type User struct { Id int32 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` Account string `protobuf:"bytes,2,opt,name=Account,proto3" json:"Account,omitempty"` NickName string `protobuf:"bytes,3,opt,name=NickName,proto3" json:"NickName,omitempty"` Pwd string `protobuf:"bytes,4,opt,name=Pwd,proto3" json:"Pwd,omitempty"` Email string `protobuf:"bytes,5,opt,name=Email,proto3" json:"Email,omitempty"` Phone string `protobuf:"bytes,6,opt,name=Phone,proto3" json:"Phone,omitempty"` PicUrl string `protobuf:"bytes,7,opt,name=PicUrl,proto3" json:"PicUrl,omitempty"` // google.protobuf.Timestamp BirthDay = 8; // google.protobuf.Timestamp CreateTime = 9; BirthDay int64 `protobuf:"varint,8,opt,name=BirthDay,proto3" json:"BirthDay,omitempty"` CreateTime int64 `protobuf:"varint,9,opt,name=CreateTime,proto3" json:"CreateTime,omitempty"` Status int32 `protobuf:"varint,10,opt,name=Status,proto3" json:"Status,omitempty"` // google.protobuf.Timestamp LastLoginTime = 11; LastLoginTime int64 `protobuf:"varint,11,opt,name=LastLoginTime,proto3" json:"LastLoginTime,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetAccount ¶
func (*User) GetBirthDay ¶
func (*User) GetCreateTime ¶
func (*User) GetLastLoginTime ¶
func (*User) GetNickName ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message