All Downloads are FREE. Search and download functionalities are using the official Maven repository.

k.e.book.ddh.entity.CcConfigDO Maven / Gradle / Ivy


package k.e.book.ddh.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;
import java.io.Serializable;
import java.util.Date;
/**
 * @author kk
 * @date 2023-05-21 11:01
 */
@EqualsAndHashCode(callSuper = false)
@Data
@TableName("cc_config")
@ApiModel(value="CcConfigDO", description="CcConfig")
public class CcConfigDO extends Model  {
    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /**
     * 变量名
     */
    @TableField("name")
    private String name;
    /**
     * 分组
     */
    @TableField("group")
    private String group;
    /**
     * 变量标题
     */
    @TableField("title")
    private String title;
    /**
     * 变量描述
     */
    @TableField("tip")
    private String tip;
    /**
     * 类型:string,text,int,bool,array,datetime,date,file
     */
    @TableField("type")
    private String type;
    /**
     * 变量值
     */
    @TableField("value")
    private String value;
    /**
     * 变量字典数据
     */
    @TableField("content")
    private String content;
    /**
     * 验证规则
     */
    @TableField("rule")
    private String rule;
    /**
     * 扩展属性
     */
    @TableField("extend")
    private String extend;
    /**
     * 配置
     */
    @TableField("setting")
    private String setting;
    /**
     * 可见条件
     */
    @TableField("visible")
    private String visible;

    public static CcConfigVO toVO(CcConfigDO ccConfigDO) {
        if(ccConfigDO == null){
            return null;
        }
        CcConfigVO ccConfigVO = new CcConfigVO();
        BeanUtils.copyProperties(ccConfigDO, ccConfigVO);
        return ccConfigVO;
    }

    public static CcConfigDO toDO(CcConfigAddDTO ccConfigAddDTO) {
        if (ccConfigAddDTO == null) {
            return null;
        }
        CcConfigDO ccConfigDO = new CcConfigDO();
        BeanUtils.copyProperties(ccConfigAddDTO, ccConfigDO);
        return ccConfigDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy