|
|
|
@ -1,53 +1,61 @@
|
|
|
|
|
package com.entity;
|
|
|
|
|
|
|
|
|
|
import java.io.Serializable;import com.baomidou.mybatisplus.annotations.TableId;
|
|
|
|
|
import com.baomidou.mybatisplus.annotations.TableName;
|
|
|
|
|
import com.baomidou.mybatisplus.enums.IdType;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @author yangliyuan
|
|
|
|
|
* @version 创建时间:2020年2月7日 下午8:36:05
|
|
|
|
|
* 类说明 :
|
|
|
|
|
*/
|
|
|
|
|
import java.io.Serializable; // Java序列化支持
|
|
|
|
|
import com.baomidou.mybatisplus.annotations.TableId; // 主键注解
|
|
|
|
|
import com.baomidou.mybatisplus.annotations.TableName; // 表名注解
|
|
|
|
|
import com.baomidou.mybatisplus.enums.IdType; // ID类型枚举
|
|
|
|
|
@TableName("config")
|
|
|
|
|
public class ConfigEntity implements Serializable{
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
public class ConfigEntity implements Serializable {
|
|
|
|
|
|
|
|
|
|
// 序列化版本UID,保证序列化兼容性
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
// 主键ID(自增)
|
|
|
|
|
// 使用MyBatis-Plus的数据库ID自增策略
|
|
|
|
|
@TableId(type = IdType.AUTO)
|
|
|
|
|
private Long id;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* key
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// 配置项名称(唯一标识)
|
|
|
|
|
// 存储配置的键名称,具有唯一性约束
|
|
|
|
|
private String name;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* value
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// 配置项值
|
|
|
|
|
// 存储与配置名称对应的具体配置值
|
|
|
|
|
private String value;
|
|
|
|
|
|
|
|
|
|
// 获取主键ID
|
|
|
|
|
// @return 主键ID
|
|
|
|
|
public Long getId() {
|
|
|
|
|
return id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 设置主键ID
|
|
|
|
|
// @param id 主键ID
|
|
|
|
|
public void setId(Long id) {
|
|
|
|
|
this.id = id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 获取配置项名称
|
|
|
|
|
// @return 配置项名称
|
|
|
|
|
public String getName() {
|
|
|
|
|
return name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 设置配置项名称
|
|
|
|
|
// @param name 配置项名称
|
|
|
|
|
public void setName(String name) {
|
|
|
|
|
this.name = name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 获取配置项值
|
|
|
|
|
// @return 配置项值
|
|
|
|
|
public String getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 设置配置项值
|
|
|
|
|
// @param value 配置项值
|
|
|
|
|
public void setValue(String value) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|