410 lines
15 KiB
Go
410 lines
15 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_mobile_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 VerifyUserMobileRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Mobile string `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"` // 手机号
|
|
Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // 激活码
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VerifyUserMobileRequest) Reset() {
|
|
*x = VerifyUserMobileRequest{}
|
|
mi := &file_service_user_mobile_verification_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VerifyUserMobileRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VerifyUserMobileRequest) ProtoMessage() {}
|
|
|
|
func (x *VerifyUserMobileRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_mobile_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 VerifyUserMobileRequest.ProtoReflect.Descriptor instead.
|
|
func (*VerifyUserMobileRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_user_mobile_verification_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *VerifyUserMobileRequest) GetMobile() string {
|
|
if x != nil {
|
|
return x.Mobile
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyUserMobileRequest) GetCode() string {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type VerifyUserMobileResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` // 手机号码对应的用户ID
|
|
Mobile string `protobuf:"bytes,2,opt,name=mobile,proto3" json:"mobile,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 *VerifyUserMobileResponse) Reset() {
|
|
*x = VerifyUserMobileResponse{}
|
|
mi := &file_service_user_mobile_verification_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VerifyUserMobileResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VerifyUserMobileResponse) ProtoMessage() {}
|
|
|
|
func (x *VerifyUserMobileResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_mobile_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 VerifyUserMobileResponse.ProtoReflect.Descriptor instead.
|
|
func (*VerifyUserMobileResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_user_mobile_verification_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *VerifyUserMobileResponse) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *VerifyUserMobileResponse) GetMobile() string {
|
|
if x != nil {
|
|
return x.Mobile
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyUserMobileResponse) GetErrorCode() string {
|
|
if x != nil {
|
|
return x.ErrorCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyUserMobileResponse) GetErrorMessage() string {
|
|
if x != nil {
|
|
return x.ErrorMessage
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 发送手机号码认证
|
|
type SendUserMobileVerificationRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Mobile string `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"` // 待验证手机号码
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SendUserMobileVerificationRequest) Reset() {
|
|
*x = SendUserMobileVerificationRequest{}
|
|
mi := &file_service_user_mobile_verification_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SendUserMobileVerificationRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SendUserMobileVerificationRequest) ProtoMessage() {}
|
|
|
|
func (x *SendUserMobileVerificationRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_mobile_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 SendUserMobileVerificationRequest.ProtoReflect.Descriptor instead.
|
|
func (*SendUserMobileVerificationRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_user_mobile_verification_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *SendUserMobileVerificationRequest) GetMobile() string {
|
|
if x != nil {
|
|
return x.Mobile
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SendUserMobileVerificationResponse 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"` // 错误代号
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SendUserMobileVerificationResponse) Reset() {
|
|
*x = SendUserMobileVerificationResponse{}
|
|
mi := &file_service_user_mobile_verification_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SendUserMobileVerificationResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SendUserMobileVerificationResponse) ProtoMessage() {}
|
|
|
|
func (x *SendUserMobileVerificationResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_mobile_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 SendUserMobileVerificationResponse.ProtoReflect.Descriptor instead.
|
|
func (*SendUserMobileVerificationResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_user_mobile_verification_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *SendUserMobileVerificationResponse) GetIsOk() bool {
|
|
if x != nil {
|
|
return x.IsOk
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *SendUserMobileVerificationResponse) GetErrorCode() string {
|
|
if x != nil {
|
|
return x.ErrorCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 查找用户正在等待激活的认证
|
|
type FindLatestUserMobileVerificationRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindLatestUserMobileVerificationRequest) Reset() {
|
|
*x = FindLatestUserMobileVerificationRequest{}
|
|
mi := &file_service_user_mobile_verification_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindLatestUserMobileVerificationRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindLatestUserMobileVerificationRequest) ProtoMessage() {}
|
|
|
|
func (x *FindLatestUserMobileVerificationRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_mobile_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 FindLatestUserMobileVerificationRequest.ProtoReflect.Descriptor instead.
|
|
func (*FindLatestUserMobileVerificationRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_user_mobile_verification_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
type FindLatestUserMobileVerificationResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserMobileVerification *UserMobileVerification `protobuf:"bytes,1,opt,name=userMobileVerification,proto3" json:"userMobileVerification,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindLatestUserMobileVerificationResponse) Reset() {
|
|
*x = FindLatestUserMobileVerificationResponse{}
|
|
mi := &file_service_user_mobile_verification_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindLatestUserMobileVerificationResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindLatestUserMobileVerificationResponse) ProtoMessage() {}
|
|
|
|
func (x *FindLatestUserMobileVerificationResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_mobile_verification_proto_msgTypes[5]
|
|
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 FindLatestUserMobileVerificationResponse.ProtoReflect.Descriptor instead.
|
|
func (*FindLatestUserMobileVerificationResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_user_mobile_verification_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *FindLatestUserMobileVerificationResponse) GetUserMobileVerification() *UserMobileVerification {
|
|
if x != nil {
|
|
return x.UserMobileVerification
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_service_user_mobile_verification_proto protoreflect.FileDescriptor
|
|
|
|
const file_service_user_mobile_verification_proto_rawDesc = "" +
|
|
"\n" +
|
|
"&service_user_mobile_verification.proto\x12\x02pb\x1a+models/model_user_mobile_verification.proto\"E\n" +
|
|
"\x17VerifyUserMobileRequest\x12\x16\n" +
|
|
"\x06mobile\x18\x01 \x01(\tR\x06mobile\x12\x12\n" +
|
|
"\x04code\x18\x02 \x01(\tR\x04code\"\x8c\x01\n" +
|
|
"\x18VerifyUserMobileResponse\x12\x16\n" +
|
|
"\x06userId\x18\x01 \x01(\x03R\x06userId\x12\x16\n" +
|
|
"\x06mobile\x18\x02 \x01(\tR\x06mobile\x12\x1c\n" +
|
|
"\terrorCode\x18\x03 \x01(\tR\terrorCode\x12\"\n" +
|
|
"\ferrorMessage\x18\x04 \x01(\tR\ferrorMessage\";\n" +
|
|
"!SendUserMobileVerificationRequest\x12\x16\n" +
|
|
"\x06mobile\x18\x01 \x01(\tR\x06mobile\"V\n" +
|
|
"\"SendUserMobileVerificationResponse\x12\x12\n" +
|
|
"\x04isOk\x18\x01 \x01(\bR\x04isOk\x12\x1c\n" +
|
|
"\terrorCode\x18\x02 \x01(\tR\terrorCode\")\n" +
|
|
"'FindLatestUserMobileVerificationRequest\"~\n" +
|
|
"(FindLatestUserMobileVerificationResponse\x12R\n" +
|
|
"\x16userMobileVerification\x18\x01 \x01(\v2\x1a.pb.UserMobileVerificationR\x16userMobileVerification2\xda\x02\n" +
|
|
"\x1dUserMobileVerificationService\x12M\n" +
|
|
"\x10verifyUserMobile\x12\x1b.pb.VerifyUserMobileRequest\x1a\x1c.pb.VerifyUserMobileResponse\x12k\n" +
|
|
"\x1asendUserMobileVerification\x12%.pb.SendUserMobileVerificationRequest\x1a&.pb.SendUserMobileVerificationResponse\x12}\n" +
|
|
" findLatestUserMobileVerification\x12+.pb.FindLatestUserMobileVerificationRequest\x1a,.pb.FindLatestUserMobileVerificationResponseB\x06Z\x04./pbb\x06proto3"
|
|
|
|
var (
|
|
file_service_user_mobile_verification_proto_rawDescOnce sync.Once
|
|
file_service_user_mobile_verification_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_service_user_mobile_verification_proto_rawDescGZIP() []byte {
|
|
file_service_user_mobile_verification_proto_rawDescOnce.Do(func() {
|
|
file_service_user_mobile_verification_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_user_mobile_verification_proto_rawDesc), len(file_service_user_mobile_verification_proto_rawDesc)))
|
|
})
|
|
return file_service_user_mobile_verification_proto_rawDescData
|
|
}
|
|
|
|
var file_service_user_mobile_verification_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
|
var file_service_user_mobile_verification_proto_goTypes = []any{
|
|
(*VerifyUserMobileRequest)(nil), // 0: pb.VerifyUserMobileRequest
|
|
(*VerifyUserMobileResponse)(nil), // 1: pb.VerifyUserMobileResponse
|
|
(*SendUserMobileVerificationRequest)(nil), // 2: pb.SendUserMobileVerificationRequest
|
|
(*SendUserMobileVerificationResponse)(nil), // 3: pb.SendUserMobileVerificationResponse
|
|
(*FindLatestUserMobileVerificationRequest)(nil), // 4: pb.FindLatestUserMobileVerificationRequest
|
|
(*FindLatestUserMobileVerificationResponse)(nil), // 5: pb.FindLatestUserMobileVerificationResponse
|
|
(*UserMobileVerification)(nil), // 6: pb.UserMobileVerification
|
|
}
|
|
var file_service_user_mobile_verification_proto_depIdxs = []int32{
|
|
6, // 0: pb.FindLatestUserMobileVerificationResponse.userMobileVerification:type_name -> pb.UserMobileVerification
|
|
0, // 1: pb.UserMobileVerificationService.verifyUserMobile:input_type -> pb.VerifyUserMobileRequest
|
|
2, // 2: pb.UserMobileVerificationService.sendUserMobileVerification:input_type -> pb.SendUserMobileVerificationRequest
|
|
4, // 3: pb.UserMobileVerificationService.findLatestUserMobileVerification:input_type -> pb.FindLatestUserMobileVerificationRequest
|
|
1, // 4: pb.UserMobileVerificationService.verifyUserMobile:output_type -> pb.VerifyUserMobileResponse
|
|
3, // 5: pb.UserMobileVerificationService.sendUserMobileVerification:output_type -> pb.SendUserMobileVerificationResponse
|
|
5, // 6: pb.UserMobileVerificationService.findLatestUserMobileVerification:output_type -> pb.FindLatestUserMobileVerificationResponse
|
|
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_mobile_verification_proto_init() }
|
|
func file_service_user_mobile_verification_proto_init() {
|
|
if File_service_user_mobile_verification_proto != nil {
|
|
return
|
|
}
|
|
file_models_model_user_mobile_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_mobile_verification_proto_rawDesc), len(file_service_user_mobile_verification_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 6,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_service_user_mobile_verification_proto_goTypes,
|
|
DependencyIndexes: file_service_user_mobile_verification_proto_depIdxs,
|
|
MessageInfos: file_service_user_mobile_verification_proto_msgTypes,
|
|
}.Build()
|
|
File_service_user_mobile_verification_proto = out.File
|
|
file_service_user_mobile_verification_proto_goTypes = nil
|
|
file_service_user_mobile_verification_proto_depIdxs = nil
|
|
}
|