SysConfigModel.java 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. package jnpf.base.model.systemconfig;
  2. import io.swagger.v3.oas.annotations.media.Schema;
  3. import lombok.Data;
  4. import jakarta.validation.constraints.NotBlank;
  5. import jakarta.validation.constraints.NotNull;
  6. /**
  7. *
  8. * @author JNPF开发平台组
  9. * @version V3.1.0
  10. * @copyright 引迈信息技术有限公司
  11. * @date 2021/3/12 15:31
  12. */
  13. @Data
  14. public class SysConfigModel {
  15. @NotBlank(message = "必填")
  16. @Schema(description = "系统名称")
  17. private String sysName;
  18. @NotBlank(message = "必填")
  19. @Schema(description = "系统描述")
  20. private String sysDescription;
  21. @NotBlank(message = "必填")
  22. @Schema(description = "系统版本")
  23. private String sysVersion;
  24. @NotBlank(message = "必填")
  25. @Schema(description = "版权信息")
  26. private String copyright;
  27. @NotBlank(message = "必填")
  28. @Schema(description = "公司名称")
  29. private String companyName;
  30. @NotBlank(message = "必填")
  31. @Schema(description = "公司简称")
  32. private String companyCode;
  33. @NotBlank(message = "必填")
  34. @Schema(description = "公司地址")
  35. private String companyAddress;
  36. @NotBlank(message = "必填")
  37. @Schema(description = "公司法人")
  38. private String companyContacts;
  39. @NotBlank(message = "必填")
  40. @Schema(description = "公司电话")
  41. private String companyTelePhone;
  42. @NotBlank(message = "必填")
  43. @Schema(description = "公司邮箱")
  44. private String companyEmail;
  45. /**
  46. * 登录图标
  47. */
  48. @Schema(description = "登录图标")
  49. private String loginIcon;
  50. /**
  51. * 导航图标
  52. */
  53. @Schema(description = "导航图标")
  54. private String navigationIcon;
  55. /**
  56. * logo图标
  57. */
  58. @Schema(description = "logo图标")
  59. private String logoIcon;
  60. /**
  61. * App图标
  62. */
  63. @Schema(description = "App图标")
  64. private String appIcon;
  65. /**
  66. * 1--后登陆踢出先登录
  67. * 2--同时登陆
  68. */
  69. @NotBlank(message = "必填")
  70. @Schema(description = "单一登录方式")
  71. private Integer singleLogin;
  72. /**
  73. * 密码错误次数
  74. */
  75. @Schema(description = "密码错误次数")
  76. @NotNull(message = "必填")
  77. private Integer passwordErrorsNumber;
  78. /**
  79. * 错误策略 1--账号锁定 2--延时登录
  80. */
  81. @Schema(description = "错误策略")
  82. private Integer lockType;
  83. /**
  84. * 延时登录时间
  85. */
  86. @Schema(description = "延时登录时间")
  87. private Integer lockTime;
  88. /**
  89. * 是否开启验证码
  90. */
  91. @Schema(description = "是否开启验证码")
  92. private Integer enableVerificationCode;
  93. /**
  94. * 验证码位数
  95. */
  96. @Schema(description = "验证码位数")
  97. private Integer verificationCodeNumber;
  98. @NotBlank(message = "必填")
  99. @Schema(description = "超出登出")
  100. private String tokenTimeout;
  101. @NotBlank(message = "必填")
  102. @Schema(description = "是否开启上次登录提醒")
  103. private Integer lastLoginTimeSwitch;
  104. @NotBlank(message = "必填")
  105. @Schema(description = "是否开启白名单验证")
  106. private Integer whitelistSwitch;
  107. @NotBlank(message = "必填")
  108. @Schema(description = "白名单")
  109. private String whiteListIp;
  110. @NotBlank(message = "必填")
  111. @Schema(description = "POP3服务主机地址")
  112. private String emailPop3Host;
  113. @NotBlank(message = "必填")
  114. @Schema(description = "POP3服务端口")
  115. private String emailPop3Port;
  116. @NotBlank(message = "必填")
  117. @Schema(description = "SMTP服务主机地址")
  118. private String emailSmtpHost;
  119. @NotBlank(message = "必填")
  120. @Schema(description = "邮件显示名称")
  121. private String emailSmtpPort;
  122. @NotBlank(message = "必填")
  123. @Schema(description = "系统名称")
  124. private String emailSenderName;
  125. @NotBlank(message = "必填")
  126. @Schema(description = "邮箱账户")
  127. private String emailAccount;
  128. @NotBlank(message = "必填")
  129. @Schema(description = "邮箱密码")
  130. private String emailPassword;
  131. @NotBlank(message = "必填")
  132. @Schema(description = "是否开启SSL服务登录")
  133. private Integer emailSsl;
  134. @NotBlank(message = "必填")
  135. @Schema(description = "授权密钥")
  136. private String registerKey;
  137. private String lastLoginTime;
  138. private String pageSize;
  139. private String sysTheme;
  140. private String isLog;
  141. // 短信配置
  142. /**
  143. * 阿里
  144. */
  145. private String aliAccessKey;
  146. private String aliSecret;
  147. /**
  148. * 腾讯
  149. */
  150. private String tencentSecretId;
  151. private String tencentSecretKey;
  152. private String tencentAppId;
  153. private String tencentAppKey;
  154. // End 短信配置
  155. /**
  156. * 审批链接时效性
  157. */
  158. private String linkTime;
  159. /**
  160. * 链接点击次数
  161. */
  162. private Integer isClick;
  163. /**
  164. * 链接失效次数
  165. */
  166. private Integer unClickNum;
  167. /** 密码策略 */
  168. /**
  169. * 密码定期更新开关
  170. */
  171. private Integer passwordIsUpdatedRegularly;
  172. /**
  173. * 更新周期
  174. */
  175. private Integer updateCycle;
  176. /**
  177. * 提前N天提醒更新
  178. */
  179. private Integer updateInAdvance;
  180. /**
  181. * 密码强度限制开关
  182. */
  183. private Integer passwordStrengthLimit;
  184. /**
  185. * 最小长度开关
  186. */
  187. private Integer passwordLengthMin;
  188. /**
  189. * 密码最小长度限制
  190. */
  191. private Integer passwordLengthMinNumber;
  192. /**
  193. * 是否包含数字
  194. */
  195. private Integer containsNumbers;
  196. /**
  197. * 是否包含小写字母
  198. */
  199. private Integer includeLowercaseLetters;
  200. /**
  201. * 是否包含大写字母
  202. */
  203. private Integer includeUppercaseLetters;
  204. /**
  205. * 是否包含字符
  206. */
  207. private Integer containsCharacters;
  208. /**
  209. * 是否禁用旧密码开关
  210. */
  211. private Integer disableOldPassword;
  212. /**
  213. * 禁用旧密码个数
  214. */
  215. private Integer disableTheNumberOfOldPasswords;
  216. /**
  217. * 初始密码强制修改开关
  218. */
  219. private Integer mandatoryModificationOfInitialPassword;
  220. @Schema(description = "窗口标题")
  221. private String title;
  222. @Schema(description = "用户密码")
  223. private String newUserDefaultPassword;
  224. /**
  225. * 以下日程相关属性添加
  226. * { id: 'timeGridDay', fullName: '日' },
  227. * { id: 'timeGridWeek', fullName: '周' },
  228. * { id: 'dayGridMonth', fullName: '月' },
  229. */
  230. @Schema(description = "默认视图")
  231. private String defaultView = "dayGridMonth";
  232. @Schema(description = "显示农历")
  233. private Boolean showLunarCalendar = false;
  234. @Schema(description = "周第一天")
  235. private Integer firstDay = 0;
  236. @Schema(description = "默认时长")
  237. private Integer duration = 60;
  238. @Schema(description = "流程签收")
  239. private Integer flowSign = 0;
  240. @Schema(description = "流程办理")
  241. private Integer flowTodo = 0;
  242. /**
  243. * 1:无范围限制 2:同一部门 3:同一岗位 6:同一公司
  244. */
  245. @Schema(description = "委托范围")
  246. private Integer delegateScope = 1;
  247. @Schema(description = "委托确认")
  248. private Integer delegateAck = 0;
  249. @Schema(description = "代理范围")
  250. private Integer proxyScope = 1;
  251. @Schema(description = "代理确认")
  252. private Integer proxyAck = 0;
  253. @Schema(description = "加签层级")
  254. private Integer addSignLevel = 1;
  255. /**
  256. * 模块设置
  257. * 组织岗位层级1-9
  258. */
  259. @Schema(description = "组织层级设置")
  260. private Integer orgLevel = 9;
  261. @Schema(description = "岗位层级设置")
  262. private Integer positionLevel = 9;
  263. @Schema(description = "组织层级不验证(1-开启不验证,其他验证)")
  264. private Integer orgNotCheck = 1;
  265. @Schema(description = "系统岗位名称")
  266. private String sysPositionName = "默认岗位";
  267. }