SysConfig.java 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. package com.ruoyi.system.domain;
  2. import com.baomidou.mybatisplus.annotation.*;
  3. import com.fasterxml.jackson.annotation.JsonFormat;
  4. import com.ruoyi.common.annotation.Excel;
  5. import com.ruoyi.common.annotation.Excel.ColumnType;
  6. import lombok.Data;
  7. import lombok.NoArgsConstructor;
  8. import lombok.experimental.Accessors;
  9. import javax.validation.constraints.NotBlank;
  10. import javax.validation.constraints.Size;
  11. import java.io.Serializable;
  12. import java.util.Date;
  13. import java.util.HashMap;
  14. import java.util.Map;
  15. /**
  16. * 参数配置表 sys_config
  17. *
  18. * @author ruoyi
  19. */
  20. @Data
  21. @NoArgsConstructor
  22. @Accessors(chain = true)
  23. @TableName("sys_config")
  24. public class SysConfig implements Serializable {
  25. private static final long serialVersionUID = 1L;
  26. /**
  27. * 参数主键
  28. */
  29. @Excel(name = "参数主键", cellType = ColumnType.NUMERIC)
  30. @TableId(value = "config_id", type = IdType.AUTO)
  31. private Long configId;
  32. /**
  33. * 参数名称
  34. */
  35. @Excel(name = "参数名称")
  36. @NotBlank(message = "参数名称不能为空")
  37. @Size(min = 0, max = 100, message = "参数名称不能超过100个字符")
  38. private String configName;
  39. /**
  40. * 参数键名
  41. */
  42. @Excel(name = "参数键名")
  43. @NotBlank(message = "参数键名长度不能为空")
  44. @Size(min = 0, max = 100, message = "参数键名长度不能超过100个字符")
  45. private String configKey;
  46. /**
  47. * 参数键值
  48. */
  49. @Excel(name = "参数键值")
  50. @NotBlank(message = "参数键值不能为空")
  51. @Size(min = 0, max = 500, message = "参数键值长度不能超过500个字符")
  52. private String configValue;
  53. /**
  54. * 系统内置(Y是 N否)
  55. */
  56. @Excel(name = "系统内置", readConverterExp = "Y=是,N=否")
  57. private String configType;
  58. /**
  59. * 创建者
  60. */
  61. private String createBy;
  62. /**
  63. * 创建时间
  64. */
  65. @TableField(fill = FieldFill.INSERT)
  66. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  67. private Date createTime;
  68. /**
  69. * 更新者
  70. */
  71. private String updateBy;
  72. /**
  73. * 更新时间
  74. */
  75. @TableField(fill = FieldFill.INSERT_UPDATE)
  76. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  77. private Date updateTime;
  78. /**
  79. * 备注
  80. */
  81. private String remark;
  82. /**
  83. * 请求参数
  84. */
  85. @TableField(exist = false)
  86. private Map<String, Object> params = new HashMap<>();
  87. }