SysConfig.java 3.0 KB

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