349 lines
12 KiB
Go
349 lines
12 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
// versions:
|
||
// protoc-gen-go v1.36.11
|
||
// protoc v3.19.6
|
||
// source: service_user_verify_code.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 SendUserVerifyCodeRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // 类型:重置密码(resetPassword)
|
||
Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` // 已验证邮箱地址
|
||
Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` // 已验证手机号
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SendUserVerifyCodeRequest) Reset() {
|
||
*x = SendUserVerifyCodeRequest{}
|
||
mi := &file_service_user_verify_code_proto_msgTypes[0]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SendUserVerifyCodeRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SendUserVerifyCodeRequest) ProtoMessage() {}
|
||
|
||
func (x *SendUserVerifyCodeRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_user_verify_code_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 SendUserVerifyCodeRequest.ProtoReflect.Descriptor instead.
|
||
func (*SendUserVerifyCodeRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_user_verify_code_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
func (x *SendUserVerifyCodeRequest) GetType() string {
|
||
if x != nil {
|
||
return x.Type
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SendUserVerifyCodeRequest) GetEmail() string {
|
||
if x != nil {
|
||
return x.Email
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SendUserVerifyCodeRequest) GetMobile() string {
|
||
if x != nil {
|
||
return x.Mobile
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type SendUserVerifyCodeResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
CodeLength int32 `protobuf:"varint,1,opt,name=codeLength,proto3" json:"codeLength,omitempty"` // 验证码长度
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SendUserVerifyCodeResponse) Reset() {
|
||
*x = SendUserVerifyCodeResponse{}
|
||
mi := &file_service_user_verify_code_proto_msgTypes[1]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SendUserVerifyCodeResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SendUserVerifyCodeResponse) ProtoMessage() {}
|
||
|
||
func (x *SendUserVerifyCodeResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_user_verify_code_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 SendUserVerifyCodeResponse.ProtoReflect.Descriptor instead.
|
||
func (*SendUserVerifyCodeResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_user_verify_code_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
func (x *SendUserVerifyCodeResponse) GetCodeLength() int32 {
|
||
if x != nil {
|
||
return x.CodeLength
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 校验验证码
|
||
type ValidateUserVerifyCodeRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // 类型:重置密码(resetPassword)
|
||
Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` // 已验证邮箱地址
|
||
Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` // 已验证手机号
|
||
Code string `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty"` // 验证码
|
||
// 找回密码
|
||
NewPassword string `protobuf:"bytes,10,opt,name=newPassword,proto3" json:"newPassword,omitempty"` // 新密码
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ValidateUserVerifyCodeRequest) Reset() {
|
||
*x = ValidateUserVerifyCodeRequest{}
|
||
mi := &file_service_user_verify_code_proto_msgTypes[2]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ValidateUserVerifyCodeRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ValidateUserVerifyCodeRequest) ProtoMessage() {}
|
||
|
||
func (x *ValidateUserVerifyCodeRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_user_verify_code_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 ValidateUserVerifyCodeRequest.ProtoReflect.Descriptor instead.
|
||
func (*ValidateUserVerifyCodeRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_user_verify_code_proto_rawDescGZIP(), []int{2}
|
||
}
|
||
|
||
func (x *ValidateUserVerifyCodeRequest) GetType() string {
|
||
if x != nil {
|
||
return x.Type
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ValidateUserVerifyCodeRequest) GetEmail() string {
|
||
if x != nil {
|
||
return x.Email
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ValidateUserVerifyCodeRequest) GetMobile() string {
|
||
if x != nil {
|
||
return x.Mobile
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ValidateUserVerifyCodeRequest) GetCode() string {
|
||
if x != nil {
|
||
return x.Code
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ValidateUserVerifyCodeRequest) GetNewPassword() string {
|
||
if x != nil {
|
||
return x.NewPassword
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type ValidateUserVerifyCodeResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
IsOk bool `protobuf:"varint,1,opt,name=isOk,proto3" json:"isOk,omitempty"` // 是否成功
|
||
ErrorCode string `protobuf:"bytes,2,opt,name=errorCode,proto3" json:"errorCode,omitempty"` // 错误代号
|
||
ErrorMessage string `protobuf:"bytes,3,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"` // 错误消息
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ValidateUserVerifyCodeResponse) Reset() {
|
||
*x = ValidateUserVerifyCodeResponse{}
|
||
mi := &file_service_user_verify_code_proto_msgTypes[3]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ValidateUserVerifyCodeResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ValidateUserVerifyCodeResponse) ProtoMessage() {}
|
||
|
||
func (x *ValidateUserVerifyCodeResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_user_verify_code_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 ValidateUserVerifyCodeResponse.ProtoReflect.Descriptor instead.
|
||
func (*ValidateUserVerifyCodeResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_user_verify_code_proto_rawDescGZIP(), []int{3}
|
||
}
|
||
|
||
func (x *ValidateUserVerifyCodeResponse) GetIsOk() bool {
|
||
if x != nil {
|
||
return x.IsOk
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *ValidateUserVerifyCodeResponse) GetErrorCode() string {
|
||
if x != nil {
|
||
return x.ErrorCode
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ValidateUserVerifyCodeResponse) GetErrorMessage() string {
|
||
if x != nil {
|
||
return x.ErrorMessage
|
||
}
|
||
return ""
|
||
}
|
||
|
||
var File_service_user_verify_code_proto protoreflect.FileDescriptor
|
||
|
||
const file_service_user_verify_code_proto_rawDesc = "" +
|
||
"\n" +
|
||
"\x1eservice_user_verify_code.proto\x12\x02pb\"]\n" +
|
||
"\x19SendUserVerifyCodeRequest\x12\x12\n" +
|
||
"\x04type\x18\x01 \x01(\tR\x04type\x12\x14\n" +
|
||
"\x05email\x18\x02 \x01(\tR\x05email\x12\x16\n" +
|
||
"\x06mobile\x18\x03 \x01(\tR\x06mobile\"<\n" +
|
||
"\x1aSendUserVerifyCodeResponse\x12\x1e\n" +
|
||
"\n" +
|
||
"codeLength\x18\x01 \x01(\x05R\n" +
|
||
"codeLength\"\x97\x01\n" +
|
||
"\x1dValidateUserVerifyCodeRequest\x12\x12\n" +
|
||
"\x04type\x18\x01 \x01(\tR\x04type\x12\x14\n" +
|
||
"\x05email\x18\x02 \x01(\tR\x05email\x12\x16\n" +
|
||
"\x06mobile\x18\x03 \x01(\tR\x06mobile\x12\x12\n" +
|
||
"\x04code\x18\x04 \x01(\tR\x04code\x12 \n" +
|
||
"\vnewPassword\x18\n" +
|
||
" \x01(\tR\vnewPassword\"v\n" +
|
||
"\x1eValidateUserVerifyCodeResponse\x12\x12\n" +
|
||
"\x04isOk\x18\x01 \x01(\bR\x04isOk\x12\x1c\n" +
|
||
"\terrorCode\x18\x02 \x01(\tR\terrorCode\x12\"\n" +
|
||
"\ferrorMessage\x18\x03 \x01(\tR\ferrorMessage2\xcd\x01\n" +
|
||
"\x15UserVerifyCodeService\x12S\n" +
|
||
"\x12sendUserVerifyCode\x12\x1d.pb.SendUserVerifyCodeRequest\x1a\x1e.pb.SendUserVerifyCodeResponse\x12_\n" +
|
||
"\x16validateUserVerifyCode\x12!.pb.ValidateUserVerifyCodeRequest\x1a\".pb.ValidateUserVerifyCodeResponseB\x06Z\x04./pbb\x06proto3"
|
||
|
||
var (
|
||
file_service_user_verify_code_proto_rawDescOnce sync.Once
|
||
file_service_user_verify_code_proto_rawDescData []byte
|
||
)
|
||
|
||
func file_service_user_verify_code_proto_rawDescGZIP() []byte {
|
||
file_service_user_verify_code_proto_rawDescOnce.Do(func() {
|
||
file_service_user_verify_code_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_user_verify_code_proto_rawDesc), len(file_service_user_verify_code_proto_rawDesc)))
|
||
})
|
||
return file_service_user_verify_code_proto_rawDescData
|
||
}
|
||
|
||
var file_service_user_verify_code_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||
var file_service_user_verify_code_proto_goTypes = []any{
|
||
(*SendUserVerifyCodeRequest)(nil), // 0: pb.SendUserVerifyCodeRequest
|
||
(*SendUserVerifyCodeResponse)(nil), // 1: pb.SendUserVerifyCodeResponse
|
||
(*ValidateUserVerifyCodeRequest)(nil), // 2: pb.ValidateUserVerifyCodeRequest
|
||
(*ValidateUserVerifyCodeResponse)(nil), // 3: pb.ValidateUserVerifyCodeResponse
|
||
}
|
||
var file_service_user_verify_code_proto_depIdxs = []int32{
|
||
0, // 0: pb.UserVerifyCodeService.sendUserVerifyCode:input_type -> pb.SendUserVerifyCodeRequest
|
||
2, // 1: pb.UserVerifyCodeService.validateUserVerifyCode:input_type -> pb.ValidateUserVerifyCodeRequest
|
||
1, // 2: pb.UserVerifyCodeService.sendUserVerifyCode:output_type -> pb.SendUserVerifyCodeResponse
|
||
3, // 3: pb.UserVerifyCodeService.validateUserVerifyCode:output_type -> pb.ValidateUserVerifyCodeResponse
|
||
2, // [2:4] is the sub-list for method output_type
|
||
0, // [0:2] is the sub-list for method input_type
|
||
0, // [0:0] is the sub-list for extension type_name
|
||
0, // [0:0] is the sub-list for extension extendee
|
||
0, // [0:0] is the sub-list for field type_name
|
||
}
|
||
|
||
func init() { file_service_user_verify_code_proto_init() }
|
||
func file_service_user_verify_code_proto_init() {
|
||
if File_service_user_verify_code_proto != nil {
|
||
return
|
||
}
|
||
type x struct{}
|
||
out := protoimpl.TypeBuilder{
|
||
File: protoimpl.DescBuilder{
|
||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_user_verify_code_proto_rawDesc), len(file_service_user_verify_code_proto_rawDesc)),
|
||
NumEnums: 0,
|
||
NumMessages: 4,
|
||
NumExtensions: 0,
|
||
NumServices: 1,
|
||
},
|
||
GoTypes: file_service_user_verify_code_proto_goTypes,
|
||
DependencyIndexes: file_service_user_verify_code_proto_depIdxs,
|
||
MessageInfos: file_service_user_verify_code_proto_msgTypes,
|
||
}.Build()
|
||
File_service_user_verify_code_proto = out.File
|
||
file_service_user_verify_code_proto_goTypes = nil
|
||
file_service_user_verify_code_proto_depIdxs = nil
|
||
}
|