github.com/infraboard/keyauth@v0.8.1/apps/verifycode/verifycode.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc v3.19.1 5 // source: apps/verifycode/pb/verifycode.proto 6 7 package verifycode 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 // Code todo 24 type Code struct { 25 state protoimpl.MessageState 26 sizeCache protoimpl.SizeCache 27 unknownFields protoimpl.UnknownFields 28 29 // @gotags: bson:"_id" json:"id" 30 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` 31 // @gotags: json:"username" validate:"required" 32 Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username" validate:"required"` 33 // @gotags: json:"number" validate:"required" 34 Number string `protobuf:"bytes,3,opt,name=number,proto3" json:"number" validate:"required"` 35 // @gotags: bson:"issue_at" json:"issue_at" 36 IssueAt int64 `protobuf:"varint,4,opt,name=issue_at,json=issueAt,proto3" json:"issue_at" bson:"issue_at"` 37 // @gotags: bson:"expired_minite" json:"expired_minite" 38 ExpiredMinite uint32 `protobuf:"varint,5,opt,name=expired_minite,json=expiredMinite,proto3" json:"expired_minite" bson:"expired_minite"` 39 } 40 41 func (x *Code) Reset() { 42 *x = Code{} 43 if protoimpl.UnsafeEnabled { 44 mi := &file_apps_verifycode_pb_verifycode_proto_msgTypes[0] 45 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 46 ms.StoreMessageInfo(mi) 47 } 48 } 49 50 func (x *Code) String() string { 51 return protoimpl.X.MessageStringOf(x) 52 } 53 54 func (*Code) ProtoMessage() {} 55 56 func (x *Code) ProtoReflect() protoreflect.Message { 57 mi := &file_apps_verifycode_pb_verifycode_proto_msgTypes[0] 58 if protoimpl.UnsafeEnabled && x != nil { 59 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 60 if ms.LoadMessageInfo() == nil { 61 ms.StoreMessageInfo(mi) 62 } 63 return ms 64 } 65 return mi.MessageOf(x) 66 } 67 68 // Deprecated: Use Code.ProtoReflect.Descriptor instead. 69 func (*Code) Descriptor() ([]byte, []int) { 70 return file_apps_verifycode_pb_verifycode_proto_rawDescGZIP(), []int{0} 71 } 72 73 func (x *Code) GetId() string { 74 if x != nil { 75 return x.Id 76 } 77 return "" 78 } 79 80 func (x *Code) GetUsername() string { 81 if x != nil { 82 return x.Username 83 } 84 return "" 85 } 86 87 func (x *Code) GetNumber() string { 88 if x != nil { 89 return x.Number 90 } 91 return "" 92 } 93 94 func (x *Code) GetIssueAt() int64 { 95 if x != nil { 96 return x.IssueAt 97 } 98 return 0 99 } 100 101 func (x *Code) GetExpiredMinite() uint32 { 102 if x != nil { 103 return x.ExpiredMinite 104 } 105 return 0 106 } 107 108 var File_apps_verifycode_pb_verifycode_proto protoreflect.FileDescriptor 109 110 var file_apps_verifycode_pb_verifycode_proto_rawDesc = []byte{ 111 0x0a, 0x23, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x63, 0x6f, 0x64, 112 0x65, 0x2f, 0x70, 0x62, 0x2f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x63, 0x6f, 0x64, 0x65, 0x2e, 113 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 114 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 115 0x63, 0x6f, 0x64, 0x65, 0x22, 0x8c, 0x01, 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 116 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 117 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 118 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 119 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 120 0x72, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73, 0x73, 0x75, 0x65, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 121 0x01, 0x28, 0x03, 0x52, 0x07, 0x69, 0x73, 0x73, 0x75, 0x65, 0x41, 0x74, 0x12, 0x25, 0x0a, 0x0e, 122 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x6d, 0x69, 0x6e, 0x69, 0x74, 0x65, 0x18, 0x05, 123 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x4d, 0x69, 0x6e, 124 0x69, 0x74, 0x65, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 125 0x6d, 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x6b, 0x65, 0x79, 126 0x61, 0x75, 0x74, 0x68, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 127 0x63, 0x6f, 0x64, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 128 } 129 130 var ( 131 file_apps_verifycode_pb_verifycode_proto_rawDescOnce sync.Once 132 file_apps_verifycode_pb_verifycode_proto_rawDescData = file_apps_verifycode_pb_verifycode_proto_rawDesc 133 ) 134 135 func file_apps_verifycode_pb_verifycode_proto_rawDescGZIP() []byte { 136 file_apps_verifycode_pb_verifycode_proto_rawDescOnce.Do(func() { 137 file_apps_verifycode_pb_verifycode_proto_rawDescData = protoimpl.X.CompressGZIP(file_apps_verifycode_pb_verifycode_proto_rawDescData) 138 }) 139 return file_apps_verifycode_pb_verifycode_proto_rawDescData 140 } 141 142 var file_apps_verifycode_pb_verifycode_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 143 var file_apps_verifycode_pb_verifycode_proto_goTypes = []interface{}{ 144 (*Code)(nil), // 0: infraboard.keyauth.verifycode.Code 145 } 146 var file_apps_verifycode_pb_verifycode_proto_depIdxs = []int32{ 147 0, // [0:0] is the sub-list for method output_type 148 0, // [0:0] is the sub-list for method input_type 149 0, // [0:0] is the sub-list for extension type_name 150 0, // [0:0] is the sub-list for extension extendee 151 0, // [0:0] is the sub-list for field type_name 152 } 153 154 func init() { file_apps_verifycode_pb_verifycode_proto_init() } 155 func file_apps_verifycode_pb_verifycode_proto_init() { 156 if File_apps_verifycode_pb_verifycode_proto != nil { 157 return 158 } 159 if !protoimpl.UnsafeEnabled { 160 file_apps_verifycode_pb_verifycode_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 161 switch v := v.(*Code); i { 162 case 0: 163 return &v.state 164 case 1: 165 return &v.sizeCache 166 case 2: 167 return &v.unknownFields 168 default: 169 return nil 170 } 171 } 172 } 173 type x struct{} 174 out := protoimpl.TypeBuilder{ 175 File: protoimpl.DescBuilder{ 176 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 177 RawDescriptor: file_apps_verifycode_pb_verifycode_proto_rawDesc, 178 NumEnums: 0, 179 NumMessages: 1, 180 NumExtensions: 0, 181 NumServices: 0, 182 }, 183 GoTypes: file_apps_verifycode_pb_verifycode_proto_goTypes, 184 DependencyIndexes: file_apps_verifycode_pb_verifycode_proto_depIdxs, 185 MessageInfos: file_apps_verifycode_pb_verifycode_proto_msgTypes, 186 }.Build() 187 File_apps_verifycode_pb_verifycode_proto = out.File 188 file_apps_verifycode_pb_verifycode_proto_rawDesc = nil 189 file_apps_verifycode_pb_verifycode_proto_goTypes = nil 190 file_apps_verifycode_pb_verifycode_proto_depIdxs = nil 191 }