SystemStrategyModel.java 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. package jnpf.base.model.systemconfig;
  2. import io.swagger.v3.oas.annotations.media.Schema;
  3. import jakarta.validation.constraints.NotBlank;
  4. import jakarta.validation.constraints.NotNull;
  5. import lombok.Data;
  6. @Data
  7. public class SystemStrategyModel {
  8. /**
  9. * 1--后登陆踢出先登录
  10. * 2--同时登陆
  11. */
  12. @NotBlank(message = "必填")
  13. @Schema(description = "单一登录方式")
  14. private Integer singleLogin;
  15. /**
  16. * 密码错误次数
  17. */
  18. @Schema(description = "密码错误次数")
  19. @NotNull(message = "必填")
  20. private Integer passwordErrorsNumber;
  21. /**
  22. * 错误策略 1--账号锁定 2--延时登录
  23. */
  24. @Schema(description = "错误策略")
  25. private Integer lockType;
  26. /**
  27. * 延时登录时间
  28. */
  29. @Schema(description = "延时登录时间")
  30. private Integer lockTime;
  31. /**
  32. * 是否开启验证码
  33. */
  34. @Schema(description = "是否开启验证码")
  35. private Integer enableVerificationCode;
  36. /**
  37. * 验证码位数
  38. */
  39. @Schema(description = "验证码位数")
  40. private Integer verificationCodeNumber;
  41. @NotBlank(message = "必填")
  42. @Schema(description = "超出登出")
  43. private String tokenTimeout;
  44. @NotBlank(message = "必填")
  45. @Schema(description = "是否开启上次登录提醒")
  46. private Integer lastLoginTimeSwitch;
  47. @NotBlank(message = "必填")
  48. @Schema(description = "是否开启白名单验证")
  49. private Integer whitelistSwitch;
  50. @NotBlank(message = "必填")
  51. @Schema(description = "白名单")
  52. private String whiteListIp;
  53. /** 密码策略 */
  54. /**
  55. * 密码定期更新开关
  56. */
  57. private Integer passwordIsUpdatedRegularly;
  58. /**
  59. * 更新周期
  60. */
  61. private Integer updateCycle;
  62. /**
  63. * 提前N天提醒更新
  64. */
  65. private Integer updateInAdvance;
  66. /**
  67. * 密码强度限制开关
  68. */
  69. private Integer passwordStrengthLimit;
  70. /**
  71. * 最小长度开关
  72. */
  73. private Integer passwordLengthMin;
  74. /**
  75. * 密码最小长度限制
  76. */
  77. private Integer passwordLengthMinNumber;
  78. /**
  79. * 是否包含数字
  80. */
  81. private Integer containsNumbers;
  82. /**
  83. * 是否包含小写字母
  84. */
  85. private Integer includeLowercaseLetters;
  86. /**
  87. * 是否包含大写字母
  88. */
  89. private Integer includeUppercaseLetters;
  90. /**
  91. * 是否包含字符
  92. */
  93. private Integer containsCharacters;
  94. /**
  95. * 是否禁用旧密码开关
  96. */
  97. private Integer disableOldPassword;
  98. /**
  99. * 禁用旧密码个数
  100. */
  101. private Integer disableTheNumberOfOldPasswords;
  102. /**
  103. * 初始密码强制修改开关
  104. */
  105. private Integer mandatoryModificationOfInitialPassword;
  106. @Schema(description = "窗口标题")
  107. private String title;
  108. @Schema(description = "新用户默认密码")
  109. private String newUserDefaultPassword;
  110. }