github.com/infraboard/keyauth@v0.8.1/apps/domain/setting.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/domain/pb/setting.proto 6 7 package domain 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 // PasswordSecurity 密码安全设置 24 type PasswordSecurity struct { 25 state protoimpl.MessageState 26 sizeCache protoimpl.SizeCache 27 unknownFields protoimpl.UnknownFields 28 29 // 密码长度 30 // @gotags: bson:"length" json:"length" validate:"required,min=8,max=64" 31 Length int32 `protobuf:"varint,1,opt,name=length,proto3" json:"length" bson:"length" validate:"required,min=8,max=64"` 32 // 包含数字 33 // @gotags: bson:"include_number" json:"include_number" 34 IncludeNumber bool `protobuf:"varint,2,opt,name=include_number,json=includeNumber,proto3" json:"include_number" bson:"include_number"` 35 // 包含小写字母 36 // @gotags: bson:"include_lower_letter" json:"include_lower_letter" 37 IncludeLowerLetter bool `protobuf:"varint,3,opt,name=include_lower_letter,json=includeLowerLetter,proto3" json:"include_lower_letter" bson:"include_lower_letter"` 38 // 包含大写字母 39 // @gotags: bson:"include_upper_letter" json:"include_upper_letter" 40 IncludeUpperLetter bool `protobuf:"varint,4,opt,name=include_upper_letter,json=includeUpperLetter,proto3" json:"include_upper_letter" bson:"include_upper_letter"` 41 // 包含特殊字符 42 // @gotags: bson:"include_symbols" json:"include_symbols" 43 IncludeSymbols bool `protobuf:"varint,5,opt,name=include_symbols,json=includeSymbols,proto3" json:"include_symbols" bson:"include_symbols"` 44 // 重复限制 45 // @gotags: bson:"repeate_limite" json:"repeate_limite" validate:"required,min=1,max=24" 46 RepeateLimite uint32 `protobuf:"varint,6,opt,name=repeate_limite,json=repeateLimite,proto3" json:"repeate_limite" bson:"repeate_limite" validate:"required,min=1,max=24"` 47 // 密码过期时间, 密码过期后要求用户重置密码 48 // @gotags: bson:"password_expired_days" json:"password_expired_days" validate:"required,min=0,max=365" 49 PasswordExpiredDays uint32 `protobuf:"varint,7,opt,name=password_expired_days,json=passwordExpiredDays,proto3" json:"password_expired_days" bson:"password_expired_days" validate:"required,min=0,max=365"` 50 // 密码过期前多少天开始提醒 51 // @gotags: bson:"before_expired_remind_days" json:"before_expired_remind_days" validate:"required,min=0,max=365" 52 BeforeExpiredRemindDays uint32 `protobuf:"varint,8,opt,name=before_expired_remind_days,json=beforeExpiredRemindDays,proto3" json:"before_expired_remind_days" bson:"before_expired_remind_days" validate:"required,min=0,max=365"` 53 } 54 55 func (x *PasswordSecurity) Reset() { 56 *x = PasswordSecurity{} 57 if protoimpl.UnsafeEnabled { 58 mi := &file_apps_domain_pb_setting_proto_msgTypes[0] 59 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 60 ms.StoreMessageInfo(mi) 61 } 62 } 63 64 func (x *PasswordSecurity) String() string { 65 return protoimpl.X.MessageStringOf(x) 66 } 67 68 func (*PasswordSecurity) ProtoMessage() {} 69 70 func (x *PasswordSecurity) ProtoReflect() protoreflect.Message { 71 mi := &file_apps_domain_pb_setting_proto_msgTypes[0] 72 if protoimpl.UnsafeEnabled && x != nil { 73 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 74 if ms.LoadMessageInfo() == nil { 75 ms.StoreMessageInfo(mi) 76 } 77 return ms 78 } 79 return mi.MessageOf(x) 80 } 81 82 // Deprecated: Use PasswordSecurity.ProtoReflect.Descriptor instead. 83 func (*PasswordSecurity) Descriptor() ([]byte, []int) { 84 return file_apps_domain_pb_setting_proto_rawDescGZIP(), []int{0} 85 } 86 87 func (x *PasswordSecurity) GetLength() int32 { 88 if x != nil { 89 return x.Length 90 } 91 return 0 92 } 93 94 func (x *PasswordSecurity) GetIncludeNumber() bool { 95 if x != nil { 96 return x.IncludeNumber 97 } 98 return false 99 } 100 101 func (x *PasswordSecurity) GetIncludeLowerLetter() bool { 102 if x != nil { 103 return x.IncludeLowerLetter 104 } 105 return false 106 } 107 108 func (x *PasswordSecurity) GetIncludeUpperLetter() bool { 109 if x != nil { 110 return x.IncludeUpperLetter 111 } 112 return false 113 } 114 115 func (x *PasswordSecurity) GetIncludeSymbols() bool { 116 if x != nil { 117 return x.IncludeSymbols 118 } 119 return false 120 } 121 122 func (x *PasswordSecurity) GetRepeateLimite() uint32 { 123 if x != nil { 124 return x.RepeateLimite 125 } 126 return 0 127 } 128 129 func (x *PasswordSecurity) GetPasswordExpiredDays() uint32 { 130 if x != nil { 131 return x.PasswordExpiredDays 132 } 133 return 0 134 } 135 136 func (x *PasswordSecurity) GetBeforeExpiredRemindDays() uint32 { 137 if x != nil { 138 return x.BeforeExpiredRemindDays 139 } 140 return 0 141 } 142 143 // ExceptionLockConfig todo 144 type ExceptionLockConfig struct { 145 state protoimpl.MessageState 146 sizeCache protoimpl.SizeCache 147 unknownFields protoimpl.UnknownFields 148 149 // 异地登录 150 // @gotags: bson:"other_place_login" json:"other_place_login" 151 OtherPlaceLogin bool `protobuf:"varint,1,opt,name=other_place_login,json=otherPlaceLogin,proto3" json:"other_place_login" bson:"other_place_login"` 152 // 未登录天数 153 // @gotags: bson:"not_login_days" json:"not_login_days" 154 NotLoginDays uint32 `protobuf:"varint,2,opt,name=not_login_days,json=notLoginDays,proto3" json:"not_login_days" bson:"not_login_days"` 155 } 156 157 func (x *ExceptionLockConfig) Reset() { 158 *x = ExceptionLockConfig{} 159 if protoimpl.UnsafeEnabled { 160 mi := &file_apps_domain_pb_setting_proto_msgTypes[1] 161 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 162 ms.StoreMessageInfo(mi) 163 } 164 } 165 166 func (x *ExceptionLockConfig) String() string { 167 return protoimpl.X.MessageStringOf(x) 168 } 169 170 func (*ExceptionLockConfig) ProtoMessage() {} 171 172 func (x *ExceptionLockConfig) ProtoReflect() protoreflect.Message { 173 mi := &file_apps_domain_pb_setting_proto_msgTypes[1] 174 if protoimpl.UnsafeEnabled && x != nil { 175 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 176 if ms.LoadMessageInfo() == nil { 177 ms.StoreMessageInfo(mi) 178 } 179 return ms 180 } 181 return mi.MessageOf(x) 182 } 183 184 // Deprecated: Use ExceptionLockConfig.ProtoReflect.Descriptor instead. 185 func (*ExceptionLockConfig) Descriptor() ([]byte, []int) { 186 return file_apps_domain_pb_setting_proto_rawDescGZIP(), []int{1} 187 } 188 189 func (x *ExceptionLockConfig) GetOtherPlaceLogin() bool { 190 if x != nil { 191 return x.OtherPlaceLogin 192 } 193 return false 194 } 195 196 func (x *ExceptionLockConfig) GetNotLoginDays() uint32 { 197 if x != nil { 198 return x.NotLoginDays 199 } 200 return 0 201 } 202 203 // IPLimiteConfig todo 204 type IPLimiteConfig struct { 205 state protoimpl.MessageState 206 sizeCache protoimpl.SizeCache 207 unknownFields protoimpl.UnknownFields 208 209 // 黑名单还是白名单 210 // @gotags: bson:"type" json:"type" 211 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type" bson:"type"` 212 // ip列表 213 // @gotags: bson:"ip" json:"ip" 214 Ip []string `protobuf:"bytes,2,rep,name=ip,proto3" json:"ip" bson:"ip"` 215 } 216 217 func (x *IPLimiteConfig) Reset() { 218 *x = IPLimiteConfig{} 219 if protoimpl.UnsafeEnabled { 220 mi := &file_apps_domain_pb_setting_proto_msgTypes[2] 221 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 222 ms.StoreMessageInfo(mi) 223 } 224 } 225 226 func (x *IPLimiteConfig) String() string { 227 return protoimpl.X.MessageStringOf(x) 228 } 229 230 func (*IPLimiteConfig) ProtoMessage() {} 231 232 func (x *IPLimiteConfig) ProtoReflect() protoreflect.Message { 233 mi := &file_apps_domain_pb_setting_proto_msgTypes[2] 234 if protoimpl.UnsafeEnabled && x != nil { 235 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 236 if ms.LoadMessageInfo() == nil { 237 ms.StoreMessageInfo(mi) 238 } 239 return ms 240 } 241 return mi.MessageOf(x) 242 } 243 244 // Deprecated: Use IPLimiteConfig.ProtoReflect.Descriptor instead. 245 func (*IPLimiteConfig) Descriptor() ([]byte, []int) { 246 return file_apps_domain_pb_setting_proto_rawDescGZIP(), []int{2} 247 } 248 249 func (x *IPLimiteConfig) GetType() string { 250 if x != nil { 251 return x.Type 252 } 253 return "" 254 } 255 256 func (x *IPLimiteConfig) GetIp() []string { 257 if x != nil { 258 return x.Ip 259 } 260 return nil 261 } 262 263 // RetryLockConfig 重试锁配置 264 type RetryLockConfig struct { 265 state protoimpl.MessageState 266 sizeCache protoimpl.SizeCache 267 unknownFields protoimpl.UnknownFields 268 269 // 重试限制 270 // @gotags: bson:"retry_limite" json:"retry_limite" 271 RetryLimite uint32 `protobuf:"varint,1,opt,name=retry_limite,json=retryLimite,proto3" json:"retry_limite" bson:"retry_limite"` 272 // 锁定时长 273 // @gotags: bson:"locked_minite" json:"locked_minite" 274 LockedMinite uint32 `protobuf:"varint,2,opt,name=locked_minite,json=lockedMinite,proto3" json:"locked_minite" bson:"locked_minite"` 275 } 276 277 func (x *RetryLockConfig) Reset() { 278 *x = RetryLockConfig{} 279 if protoimpl.UnsafeEnabled { 280 mi := &file_apps_domain_pb_setting_proto_msgTypes[3] 281 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 282 ms.StoreMessageInfo(mi) 283 } 284 } 285 286 func (x *RetryLockConfig) String() string { 287 return protoimpl.X.MessageStringOf(x) 288 } 289 290 func (*RetryLockConfig) ProtoMessage() {} 291 292 func (x *RetryLockConfig) ProtoReflect() protoreflect.Message { 293 mi := &file_apps_domain_pb_setting_proto_msgTypes[3] 294 if protoimpl.UnsafeEnabled && x != nil { 295 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 296 if ms.LoadMessageInfo() == nil { 297 ms.StoreMessageInfo(mi) 298 } 299 return ms 300 } 301 return mi.MessageOf(x) 302 } 303 304 // Deprecated: Use RetryLockConfig.ProtoReflect.Descriptor instead. 305 func (*RetryLockConfig) Descriptor() ([]byte, []int) { 306 return file_apps_domain_pb_setting_proto_rawDescGZIP(), []int{3} 307 } 308 309 func (x *RetryLockConfig) GetRetryLimite() uint32 { 310 if x != nil { 311 return x.RetryLimite 312 } 313 return 0 314 } 315 316 func (x *RetryLockConfig) GetLockedMinite() uint32 { 317 if x != nil { 318 return x.LockedMinite 319 } 320 return 0 321 } 322 323 // LoginSecurity 登录安全 324 type LoginSecurity struct { 325 state protoimpl.MessageState 326 sizeCache protoimpl.SizeCache 327 unknownFields protoimpl.UnknownFields 328 329 // 异常登录锁 330 // @gotags: bson:"exception_lock" json:"exception_lock" 331 ExceptionLock bool `protobuf:"varint,1,opt,name=exception_lock,json=exceptionLock,proto3" json:"exception_lock" bson:"exception_lock"` 332 // 异常配置 333 // @gotags: bson:"exception_lock_config" json:"exception_lock_config" 334 ExceptionLockConfig *ExceptionLockConfig `protobuf:"bytes,2,opt,name=exception_lock_config,json=exceptionLockConfig,proto3" json:"exception_lock_config" bson:"exception_lock_config"` 335 // 重试锁 336 // @gotags: bson:"retry_lock" json:"retry_lock" 337 RetryLock bool `protobuf:"varint,3,opt,name=retry_lock,json=retryLock,proto3" json:"retry_lock" bson:"retry_lock"` 338 // 重试锁配置 339 // @gotags: bson:"retry_lock_config" json:"retry_lock_config" 340 RetryLockConfig *RetryLockConfig `protobuf:"bytes,4,opt,name=retry_lock_config,json=retryLockConfig,proto3" json:"retry_lock_config" bson:"retry_lock_config"` 341 // IP限制 342 // @gotags: bson:"ip_limite" json:"ip_limite" 343 IpLimite bool `protobuf:"varint,5,opt,name=ip_limite,json=ipLimite,proto3" json:"ip_limite" bson:"ip_limite"` 344 // IP限制配置 345 // @gotags: bson:"ip_limite_config" json:"ip_limite_config" 346 IpLimiteConfig *IPLimiteConfig `protobuf:"bytes,6,opt,name=ip_limite_config,json=ipLimiteConfig,proto3" json:"ip_limite_config" bson:"ip_limite_config"` 347 } 348 349 func (x *LoginSecurity) Reset() { 350 *x = LoginSecurity{} 351 if protoimpl.UnsafeEnabled { 352 mi := &file_apps_domain_pb_setting_proto_msgTypes[4] 353 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 354 ms.StoreMessageInfo(mi) 355 } 356 } 357 358 func (x *LoginSecurity) String() string { 359 return protoimpl.X.MessageStringOf(x) 360 } 361 362 func (*LoginSecurity) ProtoMessage() {} 363 364 func (x *LoginSecurity) ProtoReflect() protoreflect.Message { 365 mi := &file_apps_domain_pb_setting_proto_msgTypes[4] 366 if protoimpl.UnsafeEnabled && x != nil { 367 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 368 if ms.LoadMessageInfo() == nil { 369 ms.StoreMessageInfo(mi) 370 } 371 return ms 372 } 373 return mi.MessageOf(x) 374 } 375 376 // Deprecated: Use LoginSecurity.ProtoReflect.Descriptor instead. 377 func (*LoginSecurity) Descriptor() ([]byte, []int) { 378 return file_apps_domain_pb_setting_proto_rawDescGZIP(), []int{4} 379 } 380 381 func (x *LoginSecurity) GetExceptionLock() bool { 382 if x != nil { 383 return x.ExceptionLock 384 } 385 return false 386 } 387 388 func (x *LoginSecurity) GetExceptionLockConfig() *ExceptionLockConfig { 389 if x != nil { 390 return x.ExceptionLockConfig 391 } 392 return nil 393 } 394 395 func (x *LoginSecurity) GetRetryLock() bool { 396 if x != nil { 397 return x.RetryLock 398 } 399 return false 400 } 401 402 func (x *LoginSecurity) GetRetryLockConfig() *RetryLockConfig { 403 if x != nil { 404 return x.RetryLockConfig 405 } 406 return nil 407 } 408 409 func (x *LoginSecurity) GetIpLimite() bool { 410 if x != nil { 411 return x.IpLimite 412 } 413 return false 414 } 415 416 func (x *LoginSecurity) GetIpLimiteConfig() *IPLimiteConfig { 417 if x != nil { 418 return x.IpLimiteConfig 419 } 420 return nil 421 } 422 423 var File_apps_domain_pb_setting_proto protoreflect.FileDescriptor 424 425 var file_apps_domain_pb_setting_proto_rawDesc = []byte{ 426 0x0a, 0x1c, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x70, 0x62, 427 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 428 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 429 0x74, 0x68, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0xf6, 0x02, 0x0a, 0x10, 0x50, 0x61, 430 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x12, 0x16, 431 0x0a, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 432 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 433 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 434 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x30, 0x0a, 435 0x14, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x5f, 0x6c, 436 0x65, 0x74, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x69, 0x6e, 0x63, 437 0x6c, 0x75, 0x64, 0x65, 0x4c, 0x6f, 0x77, 0x65, 0x72, 0x4c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x12, 438 0x30, 0x0a, 0x14, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x75, 0x70, 0x70, 0x65, 0x72, 439 0x5f, 0x6c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x69, 440 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x55, 0x70, 0x70, 0x65, 0x72, 0x4c, 0x65, 0x74, 0x74, 0x65, 441 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x73, 0x79, 0x6d, 442 0x62, 0x6f, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x69, 0x6e, 0x63, 0x6c, 443 0x75, 0x64, 0x65, 0x53, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 444 0x70, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 445 0x28, 0x0d, 0x52, 0x0d, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 446 0x65, 0x12, 0x32, 0x0a, 0x15, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x65, 0x78, 447 0x70, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x79, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 448 0x52, 0x13, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 449 0x64, 0x44, 0x61, 0x79, 0x73, 0x12, 0x3b, 0x0a, 0x1a, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x5f, 450 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x6d, 0x69, 0x6e, 0x64, 0x5f, 0x64, 451 0x61, 0x79, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x17, 0x62, 0x65, 0x66, 0x6f, 0x72, 452 0x65, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x52, 0x65, 0x6d, 0x69, 0x6e, 0x64, 0x44, 0x61, 453 0x79, 0x73, 0x22, 0x67, 0x0a, 0x13, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 454 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2a, 0x0a, 0x11, 0x6f, 0x74, 0x68, 455 0x65, 0x72, 0x5f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x01, 456 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x63, 0x65, 457 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x6f, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 458 0x69, 0x6e, 0x5f, 0x64, 0x61, 0x79, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x6e, 459 0x6f, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x44, 0x61, 0x79, 0x73, 0x22, 0x34, 0x0a, 0x0e, 0x49, 460 0x50, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 461 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 462 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x02, 0x69, 463 0x70, 0x22, 0x59, 0x0a, 0x0f, 0x52, 0x65, 0x74, 0x72, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 464 0x6e, 0x66, 0x69, 0x67, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x6c, 0x69, 465 0x6d, 0x69, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x72, 0x65, 0x74, 0x72, 466 0x79, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 467 0x64, 0x5f, 0x6d, 0x69, 0x6e, 0x69, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 468 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x4d, 0x69, 0x6e, 0x69, 0x74, 0x65, 0x22, 0x83, 0x03, 0x0a, 469 0x0d, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x12, 0x25, 470 0x0a, 0x0e, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 471 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 472 0x6e, 0x4c, 0x6f, 0x63, 0x6b, 0x12, 0x62, 0x0a, 0x15, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 473 0x6f, 0x6e, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 474 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 475 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 476 0x2e, 0x45, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 477 0x6e, 0x66, 0x69, 0x67, 0x52, 0x13, 0x65, 0x78, 0x63, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 478 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x74, 479 0x72, 0x79, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, 480 0x65, 0x74, 0x72, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x12, 0x56, 0x0a, 0x11, 0x72, 0x65, 0x74, 0x72, 481 0x79, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 482 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 483 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 484 0x52, 0x65, 0x74, 0x72, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 485 0x0f, 0x72, 0x65, 0x74, 0x72, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 486 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x70, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x18, 0x05, 0x20, 487 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x70, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x12, 0x53, 0x0a, 488 0x10, 0x69, 0x70, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 489 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 490 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x64, 0x6f, 0x6d, 491 0x61, 0x69, 0x6e, 0x2e, 0x49, 0x50, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 492 0x69, 0x67, 0x52, 0x0e, 0x69, 0x70, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x66, 493 0x69, 0x67, 0x42, 0x2b, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 494 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x6b, 0x65, 0x79, 0x61, 495 0x75, 0x74, 0x68, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x62, 496 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 497 } 498 499 var ( 500 file_apps_domain_pb_setting_proto_rawDescOnce sync.Once 501 file_apps_domain_pb_setting_proto_rawDescData = file_apps_domain_pb_setting_proto_rawDesc 502 ) 503 504 func file_apps_domain_pb_setting_proto_rawDescGZIP() []byte { 505 file_apps_domain_pb_setting_proto_rawDescOnce.Do(func() { 506 file_apps_domain_pb_setting_proto_rawDescData = protoimpl.X.CompressGZIP(file_apps_domain_pb_setting_proto_rawDescData) 507 }) 508 return file_apps_domain_pb_setting_proto_rawDescData 509 } 510 511 var file_apps_domain_pb_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 5) 512 var file_apps_domain_pb_setting_proto_goTypes = []interface{}{ 513 (*PasswordSecurity)(nil), // 0: infraboard.keyauth.domain.PasswordSecurity 514 (*ExceptionLockConfig)(nil), // 1: infraboard.keyauth.domain.ExceptionLockConfig 515 (*IPLimiteConfig)(nil), // 2: infraboard.keyauth.domain.IPLimiteConfig 516 (*RetryLockConfig)(nil), // 3: infraboard.keyauth.domain.RetryLockConfig 517 (*LoginSecurity)(nil), // 4: infraboard.keyauth.domain.LoginSecurity 518 } 519 var file_apps_domain_pb_setting_proto_depIdxs = []int32{ 520 1, // 0: infraboard.keyauth.domain.LoginSecurity.exception_lock_config:type_name -> infraboard.keyauth.domain.ExceptionLockConfig 521 3, // 1: infraboard.keyauth.domain.LoginSecurity.retry_lock_config:type_name -> infraboard.keyauth.domain.RetryLockConfig 522 2, // 2: infraboard.keyauth.domain.LoginSecurity.ip_limite_config:type_name -> infraboard.keyauth.domain.IPLimiteConfig 523 3, // [3:3] is the sub-list for method output_type 524 3, // [3:3] is the sub-list for method input_type 525 3, // [3:3] is the sub-list for extension type_name 526 3, // [3:3] is the sub-list for extension extendee 527 0, // [0:3] is the sub-list for field type_name 528 } 529 530 func init() { file_apps_domain_pb_setting_proto_init() } 531 func file_apps_domain_pb_setting_proto_init() { 532 if File_apps_domain_pb_setting_proto != nil { 533 return 534 } 535 if !protoimpl.UnsafeEnabled { 536 file_apps_domain_pb_setting_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 537 switch v := v.(*PasswordSecurity); i { 538 case 0: 539 return &v.state 540 case 1: 541 return &v.sizeCache 542 case 2: 543 return &v.unknownFields 544 default: 545 return nil 546 } 547 } 548 file_apps_domain_pb_setting_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 549 switch v := v.(*ExceptionLockConfig); i { 550 case 0: 551 return &v.state 552 case 1: 553 return &v.sizeCache 554 case 2: 555 return &v.unknownFields 556 default: 557 return nil 558 } 559 } 560 file_apps_domain_pb_setting_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 561 switch v := v.(*IPLimiteConfig); i { 562 case 0: 563 return &v.state 564 case 1: 565 return &v.sizeCache 566 case 2: 567 return &v.unknownFields 568 default: 569 return nil 570 } 571 } 572 file_apps_domain_pb_setting_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 573 switch v := v.(*RetryLockConfig); i { 574 case 0: 575 return &v.state 576 case 1: 577 return &v.sizeCache 578 case 2: 579 return &v.unknownFields 580 default: 581 return nil 582 } 583 } 584 file_apps_domain_pb_setting_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 585 switch v := v.(*LoginSecurity); i { 586 case 0: 587 return &v.state 588 case 1: 589 return &v.sizeCache 590 case 2: 591 return &v.unknownFields 592 default: 593 return nil 594 } 595 } 596 } 597 type x struct{} 598 out := protoimpl.TypeBuilder{ 599 File: protoimpl.DescBuilder{ 600 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 601 RawDescriptor: file_apps_domain_pb_setting_proto_rawDesc, 602 NumEnums: 0, 603 NumMessages: 5, 604 NumExtensions: 0, 605 NumServices: 0, 606 }, 607 GoTypes: file_apps_domain_pb_setting_proto_goTypes, 608 DependencyIndexes: file_apps_domain_pb_setting_proto_depIdxs, 609 MessageInfos: file_apps_domain_pb_setting_proto_msgTypes, 610 }.Build() 611 File_apps_domain_pb_setting_proto = out.File 612 file_apps_domain_pb_setting_proto_rawDesc = nil 613 file_apps_domain_pb_setting_proto_goTypes = nil 614 file_apps_domain_pb_setting_proto_depIdxs = nil 615 }