SysConfig.java 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. package com.ruoyi.system.domain;
  2. import javax.validation.constraints.NotBlank;
  3. import javax.validation.constraints.Size;
  4. import org.apache.commons.lang3.builder.ToStringBuilder;
  5. import org.apache.commons.lang3.builder.ToStringStyle;
  6. import com.ruoyi.common.annotation.Excel;
  7. import com.ruoyi.common.annotation.Excel.ColumnType;
  8. import com.ruoyi.common.core.domain.BaseEntity;
  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. @NotBlank(message = "参数名称不能为空")
  33. @Size(min = 0, max = 100, message = "参数名称不能超过100个字符")
  34. public String getConfigName()
  35. {
  36. return configName;
  37. }
  38. @NotBlank(message = "参数键名长度不能为空")
  39. @Size(min = 0, max = 100, message = "参数键名长度不能超过100个字符")
  40. public String getConfigKey()
  41. {
  42. return configKey;
  43. }
  44. @NotBlank(message = "参数键值不能为空")
  45. @Size(min = 0, max = 500, message = "参数键值长度不能超过500个字符")
  46. public String getConfigValue()
  47. {
  48. return configValue;
  49. }
  50. }