SysConfig.java 2.9 KB

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