103 lines
2.3 KiB
Java
Raw Normal View History

2020-07-20 10:41:32 +08:00
package com.ruoyi.system.domain;
2020-02-13 10:48:51 +08:00
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
2020-07-20 10:41:32 +08:00
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.ColumnType;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
2020-02-13 10:48:51 +08:00
/**
* 参数配置表 sys_config
*
2020-02-13 10:48:51 +08:00
* @author ruoyi
*/
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sys_config")
public class SysConfig {
2020-02-13 10:48:51 +08:00
private static final long serialVersionUID = 1L;
/**
* 参数主键
*/
2020-02-13 10:48:51 +08:00
@Excel(name = "参数主键", cellType = ColumnType.NUMERIC)
@TableId(value = "config_id", type = IdType.AUTO)
2020-02-13 10:48:51 +08:00
private Long configId;
/**
* 参数名称
*/
2020-02-13 10:48:51 +08:00
@Excel(name = "参数名称")
@NotBlank(message = "参数名称不能为空")
@Size(min = 0, max = 100, message = "参数名称不能超过100个字符")
2020-02-13 10:48:51 +08:00
private String configName;
/**
* 参数键名
*/
2020-02-13 10:48:51 +08:00
@Excel(name = "参数键名")
@NotBlank(message = "参数键名长度不能为空")
@Size(min = 0, max = 100, message = "参数键名长度不能超过100个字符")
2020-02-13 10:48:51 +08:00
private String configKey;
/**
* 参数键值
*/
2020-02-13 10:48:51 +08:00
@Excel(name = "参数键值")
@NotBlank(message = "参数键值不能为空")
@Size(min = 0, max = 500, message = "参数键值长度不能超过500个字符")
2020-02-13 10:48:51 +08:00
private String configValue;
/**
* 系统内置Y是 N否
*/
2020-02-13 10:48:51 +08:00
@Excel(name = "系统内置", readConverterExp = "Y=是,N=否")
private String configType;
/**
* 创建者
*/
private String createBy;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
/**
* 更新者
*/
private String updateBy;
/**
* 更新时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updateTime;
/**
* 备注
*/
private String remark;
/**
* 请求参数
*/
@TableField(exist = false)
private Map<String, Object> params = new HashMap<>();
2020-02-13 10:48:51 +08:00
}