com.github.javaclub.base.domain.ConfigKey Maven / Gradle / Ivy
/* Automatic generated by CrudCodeGenerator wirtten by Gerald Chen
*
* @(#)ConfigKey.java 2023-09-08
*
* Copyright (c) 2023 - 2099. All Rights Reserved.
*
*/
package com.github.javaclub.base.domain;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* ConfigKey 实体类
*
* @version $Id: ConfigKey.java 2023-09-08 16:25:12 Exp $
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("s_sys_config")
@ApiModel(description = "配置信息")
public class ConfigKey implements Serializable {
private static final long serialVersionUID = 1694161512951L;
public static final int REFER_INTERNAL = 0;
public static final int REFER_MULTI = 1;
@ApiModelProperty(value = "主键ID")
@TableId(type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "配置名称")
private String name;
@ApiModelProperty(value = "全局唯一key")
private String configKey;
@ApiModelProperty(value = "配置值")
private String configValue;
@ApiModelProperty(value = "权重排序值")
private Integer priority;
@ApiModelProperty(value = "内容格式: [text-普通文本 xml-XML文件内容 properties-属性格式内容 yaml-YAML格式内容 bash-SHELL脚本内容], 当refer_type=0时有效")
private String format;
@ApiModelProperty(value = "数据来源: [0-系统内置 1-用户定义]")
private Integer sourceType;
@ApiModelProperty(value = "引值类型: [0-本表取值 1-关联外表]")
private Integer referType;
@ApiModelProperty(value = "备注")
private String remark;
@ApiModelProperty(value = "创建者ID")
private Long creatorId;
@ApiModelProperty(value = "创建时间")
private Date createdTime;
@ApiModelProperty(value = "修改时间")
@TableField(update = "now()")
private Date modifiedTime;
@ApiModelProperty(value = "多值列表")
@TableField(exist = false)
private List valueList;
public ConfigKey() {}
}