Files
ipms-sjy/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysConfig.java

62 lines
1.7 KiB
Java
Raw Normal View History

2020-07-19 10:25:40 +08:00
package com.ruoyi.system.domain;
2019-10-08 09:14:38 +08:00
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
2019-11-11 08:59:15 +08:00
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
2020-07-19 10:25:40 +08:00
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.ColumnType;
import com.ruoyi.common.core.domain.BaseEntity;
2019-10-08 09:14:38 +08:00
/**
* 参数配置表 sys_config
*
2019-10-08 09:14:38 +08:00
* @author ruoyi
*/
public class SysConfig extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 参数主键 */
2019-11-11 08:59:15 +08:00
@Excel(name = "参数主键", cellType = ColumnType.NUMERIC)
2019-10-08 09:14:38 +08:00
private Long configId;
/** 参数名称 */
2019-11-11 08:59:15 +08:00
@Excel(name = "参数名称")
2019-10-08 09:14:38 +08:00
private String configName;
/** 参数键名 */
2019-11-11 08:59:15 +08:00
@Excel(name = "参数键名")
2019-10-08 09:14:38 +08:00
private String configKey;
/** 参数键值 */
2019-11-11 08:59:15 +08:00
@Excel(name = "参数键值")
2019-10-08 09:14:38 +08:00
private String configValue;
/** 系统内置Y是 N否 */
2019-11-11 08:59:15 +08:00
@Excel(name = "系统内置", readConverterExp = "Y=是,N=否")
2019-10-08 09:14:38 +08:00
private String configType;
@NotBlank(message = "参数名称不能为空")
@Size(min = 0, max = 100, message = "参数名称不能超过100个字符")
public String getConfigName()
{
return configName;
}
@NotBlank(message = "参数键名长度不能为空")
@Size(min = 0, max = 100, message = "参数键名长度不能超过100个字符")
public String getConfigKey()
{
return configKey;
}
@NotBlank(message = "参数键值不能为空")
@Size(min = 0, max = 500, message = "参数键值长度不能超过500个字符")
public String getConfigValue()
{
return configValue;
}
}