SysConfig.java 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. package com.usky.system.domain;
  2. import com.usky.common.core.bean.BaseEntity;
  3. import org.apache.commons.lang3.builder.ToStringBuilder;
  4. import org.apache.commons.lang3.builder.ToStringStyle;
  5. import javax.validation.constraints.NotBlank;
  6. import javax.validation.constraints.Size;
  7. /**
  8. * 参数配置表 sys_config
  9. *
  10. * @author yq
  11. */
  12. public class SysConfig extends BaseEntity
  13. {
  14. private static final long serialVersionUID = 1L;
  15. /** 参数主键 */
  16. private Long configId;
  17. /** 参数名称 */
  18. private String configName;
  19. /** 参数键名 */
  20. private String configKey;
  21. /** 参数键值 */
  22. private String configValue;
  23. /** 系统内置(Y是 N否) */
  24. private String configType;
  25. public Long getConfigId()
  26. {
  27. return configId;
  28. }
  29. public void setConfigId(Long configId)
  30. {
  31. this.configId = configId;
  32. }
  33. @NotBlank(message = "参数名称不能为空")
  34. @Size(min = 0, max = 100, message = "参数名称不能超过100个字符")
  35. public String getConfigName()
  36. {
  37. return configName;
  38. }
  39. public void setConfigName(String configName)
  40. {
  41. this.configName = configName;
  42. }
  43. @NotBlank(message = "参数键名长度不能为空")
  44. @Size(min = 0, max = 100, message = "参数键名长度不能超过100个字符")
  45. public String getConfigKey()
  46. {
  47. return configKey;
  48. }
  49. public void setConfigKey(String configKey)
  50. {
  51. this.configKey = configKey;
  52. }
  53. @NotBlank(message = "参数键值不能为空")
  54. @Size(min = 0, max = 500, message = "参数键值长度不能超过500个字符")
  55. public String getConfigValue()
  56. {
  57. return configValue;
  58. }
  59. public void setConfigValue(String configValue)
  60. {
  61. this.configValue = configValue;
  62. }
  63. public String getConfigType()
  64. {
  65. return configType;
  66. }
  67. public void setConfigType(String configType)
  68. {
  69. this.configType = configType;
  70. }
  71. @Override
  72. public String toString() {
  73. return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
  74. .append("configId", getConfigId())
  75. .append("configName", getConfigName())
  76. .append("configKey", getConfigKey())
  77. .append("configValue", getConfigValue())
  78. .append("configType", getConfigType())
  79. .append("createBy", getCreateBy())
  80. .append("createTime", getCreateTime())
  81. .append("updateBy", getUpdateBy())
  82. .append("updateTime", getUpdateTime())
  83. .append("remark", getRemark())
  84. .toString();
  85. }
  86. }