SysConfig.java 3.0 KB

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