// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v3.19.6 // source: service_user_email_verification.proto package pb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // 认证邮箱 type VerifyUserEmailRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // 激活码 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *VerifyUserEmailRequest) Reset() { *x = VerifyUserEmailRequest{} mi := &file_service_user_email_verification_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *VerifyUserEmailRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*VerifyUserEmailRequest) ProtoMessage() {} func (x *VerifyUserEmailRequest) ProtoReflect() protoreflect.Message { mi := &file_service_user_email_verification_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use VerifyUserEmailRequest.ProtoReflect.Descriptor instead. func (*VerifyUserEmailRequest) Descriptor() ([]byte, []int) { return file_service_user_email_verification_proto_rawDescGZIP(), []int{0} } func (x *VerifyUserEmailRequest) GetCode() string { if x != nil { return x.Code } return "" } type VerifyUserEmailResponse struct { state protoimpl.MessageState `protogen:"open.v1"` UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` // 邮箱对应的用户ID Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` // 邮箱地址 ErrorCode string `protobuf:"bytes,3,opt,name=errorCode,proto3" json:"errorCode,omitempty"` // 错误代号,如果为空,说明没有错误 ErrorMessage string `protobuf:"bytes,4,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"` // 错误信息 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *VerifyUserEmailResponse) Reset() { *x = VerifyUserEmailResponse{} mi := &file_service_user_email_verification_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *VerifyUserEmailResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*VerifyUserEmailResponse) ProtoMessage() {} func (x *VerifyUserEmailResponse) ProtoReflect() protoreflect.Message { mi := &file_service_user_email_verification_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use VerifyUserEmailResponse.ProtoReflect.Descriptor instead. func (*VerifyUserEmailResponse) Descriptor() ([]byte, []int) { return file_service_user_email_verification_proto_rawDescGZIP(), []int{1} } func (x *VerifyUserEmailResponse) GetUserId() int64 { if x != nil { return x.UserId } return 0 } func (x *VerifyUserEmailResponse) GetEmail() string { if x != nil { return x.Email } return "" } func (x *VerifyUserEmailResponse) GetErrorCode() string { if x != nil { return x.ErrorCode } return "" } func (x *VerifyUserEmailResponse) GetErrorMessage() string { if x != nil { return x.ErrorMessage } return "" } // 发送邮箱认证 type SendUserEmailVerificationRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // 待验证邮箱 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SendUserEmailVerificationRequest) Reset() { *x = SendUserEmailVerificationRequest{} mi := &file_service_user_email_verification_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SendUserEmailVerificationRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*SendUserEmailVerificationRequest) ProtoMessage() {} func (x *SendUserEmailVerificationRequest) ProtoReflect() protoreflect.Message { mi := &file_service_user_email_verification_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SendUserEmailVerificationRequest.ProtoReflect.Descriptor instead. func (*SendUserEmailVerificationRequest) Descriptor() ([]byte, []int) { return file_service_user_email_verification_proto_rawDescGZIP(), []int{2} } func (x *SendUserEmailVerificationRequest) GetEmail() string { if x != nil { return x.Email } return "" } // 查找用户正在等待激活的认证 type FindLatestUserEmailVerificationRequest struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FindLatestUserEmailVerificationRequest) Reset() { *x = FindLatestUserEmailVerificationRequest{} mi := &file_service_user_email_verification_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FindLatestUserEmailVerificationRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*FindLatestUserEmailVerificationRequest) ProtoMessage() {} func (x *FindLatestUserEmailVerificationRequest) ProtoReflect() protoreflect.Message { mi := &file_service_user_email_verification_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use FindLatestUserEmailVerificationRequest.ProtoReflect.Descriptor instead. func (*FindLatestUserEmailVerificationRequest) Descriptor() ([]byte, []int) { return file_service_user_email_verification_proto_rawDescGZIP(), []int{3} } type FindLatestUserEmailVerificationResponse struct { state protoimpl.MessageState `protogen:"open.v1"` UserEmailVerification *UserEmailVerification `protobuf:"bytes,1,opt,name=userEmailVerification,proto3" json:"userEmailVerification,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FindLatestUserEmailVerificationResponse) Reset() { *x = FindLatestUserEmailVerificationResponse{} mi := &file_service_user_email_verification_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FindLatestUserEmailVerificationResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*FindLatestUserEmailVerificationResponse) ProtoMessage() {} func (x *FindLatestUserEmailVerificationResponse) ProtoReflect() protoreflect.Message { mi := &file_service_user_email_verification_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use FindLatestUserEmailVerificationResponse.ProtoReflect.Descriptor instead. func (*FindLatestUserEmailVerificationResponse) Descriptor() ([]byte, []int) { return file_service_user_email_verification_proto_rawDescGZIP(), []int{4} } func (x *FindLatestUserEmailVerificationResponse) GetUserEmailVerification() *UserEmailVerification { if x != nil { return x.UserEmailVerification } return nil } var File_service_user_email_verification_proto protoreflect.FileDescriptor const file_service_user_email_verification_proto_rawDesc = "" + "\n" + "%service_user_email_verification.proto\x12\x02pb\x1a\x19models/rpc_messages.proto\x1a*models/model_user_email_verification.proto\",\n" + "\x16VerifyUserEmailRequest\x12\x12\n" + "\x04code\x18\x01 \x01(\tR\x04code\"\x89\x01\n" + "\x17VerifyUserEmailResponse\x12\x16\n" + "\x06userId\x18\x01 \x01(\x03R\x06userId\x12\x14\n" + "\x05email\x18\x02 \x01(\tR\x05email\x12\x1c\n" + "\terrorCode\x18\x03 \x01(\tR\terrorCode\x12\"\n" + "\ferrorMessage\x18\x04 \x01(\tR\ferrorMessage\"8\n" + " SendUserEmailVerificationRequest\x12\x14\n" + "\x05email\x18\x01 \x01(\tR\x05email\"(\n" + "&FindLatestUserEmailVerificationRequest\"z\n" + "'FindLatestUserEmailVerificationResponse\x12O\n" + "\x15userEmailVerification\x18\x01 \x01(\v2\x19.pb.UserEmailVerificationR\x15userEmailVerification2\xb9\x02\n" + "\x1cUserEmailVerificationService\x12J\n" + "\x0fverifyUserEmail\x12\x1a.pb.VerifyUserEmailRequest\x1a\x1b.pb.VerifyUserEmailResponse\x12Q\n" + "\x19sendUserEmailVerification\x12$.pb.SendUserEmailVerificationRequest\x1a\x0e.pb.RPCSuccess\x12z\n" + "\x1ffindLatestUserEmailVerification\x12*.pb.FindLatestUserEmailVerificationRequest\x1a+.pb.FindLatestUserEmailVerificationResponseB\x06Z\x04./pbb\x06proto3" var ( file_service_user_email_verification_proto_rawDescOnce sync.Once file_service_user_email_verification_proto_rawDescData []byte ) func file_service_user_email_verification_proto_rawDescGZIP() []byte { file_service_user_email_verification_proto_rawDescOnce.Do(func() { file_service_user_email_verification_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_user_email_verification_proto_rawDesc), len(file_service_user_email_verification_proto_rawDesc))) }) return file_service_user_email_verification_proto_rawDescData } var file_service_user_email_verification_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_service_user_email_verification_proto_goTypes = []any{ (*VerifyUserEmailRequest)(nil), // 0: pb.VerifyUserEmailRequest (*VerifyUserEmailResponse)(nil), // 1: pb.VerifyUserEmailResponse (*SendUserEmailVerificationRequest)(nil), // 2: pb.SendUserEmailVerificationRequest (*FindLatestUserEmailVerificationRequest)(nil), // 3: pb.FindLatestUserEmailVerificationRequest (*FindLatestUserEmailVerificationResponse)(nil), // 4: pb.FindLatestUserEmailVerificationResponse (*UserEmailVerification)(nil), // 5: pb.UserEmailVerification (*RPCSuccess)(nil), // 6: pb.RPCSuccess } var file_service_user_email_verification_proto_depIdxs = []int32{ 5, // 0: pb.FindLatestUserEmailVerificationResponse.userEmailVerification:type_name -> pb.UserEmailVerification 0, // 1: pb.UserEmailVerificationService.verifyUserEmail:input_type -> pb.VerifyUserEmailRequest 2, // 2: pb.UserEmailVerificationService.sendUserEmailVerification:input_type -> pb.SendUserEmailVerificationRequest 3, // 3: pb.UserEmailVerificationService.findLatestUserEmailVerification:input_type -> pb.FindLatestUserEmailVerificationRequest 1, // 4: pb.UserEmailVerificationService.verifyUserEmail:output_type -> pb.VerifyUserEmailResponse 6, // 5: pb.UserEmailVerificationService.sendUserEmailVerification:output_type -> pb.RPCSuccess 4, // 6: pb.UserEmailVerificationService.findLatestUserEmailVerification:output_type -> pb.FindLatestUserEmailVerificationResponse 4, // [4:7] is the sub-list for method output_type 1, // [1:4] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name 1, // [1:1] is the sub-list for extension extendee 0, // [0:1] is the sub-list for field type_name } func init() { file_service_user_email_verification_proto_init() } func file_service_user_email_verification_proto_init() { if File_service_user_email_verification_proto != nil { return } file_models_rpc_messages_proto_init() file_models_model_user_email_verification_proto_init() type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_user_email_verification_proto_rawDesc), len(file_service_user_email_verification_proto_rawDesc)), NumEnums: 0, NumMessages: 5, NumExtensions: 0, NumServices: 1, }, GoTypes: file_service_user_email_verification_proto_goTypes, DependencyIndexes: file_service_user_email_verification_proto_depIdxs, MessageInfos: file_service_user_email_verification_proto_msgTypes, }.Build() File_service_user_email_verification_proto = out.File file_service_user_email_verification_proto_goTypes = nil file_service_user_email_verification_proto_depIdxs = nil }