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

k.e.book.ddh.entity.CccConfigDO 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("ccc_config")
@ApiModel(value="CccConfigDO", description="CccConfig")
public class CccConfigDO 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("visible")
    private String visible;
    /**
     * 变量值
     */
    @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;

    public static CccConfigVO toVO(CccConfigDO cccConfigDO) {
        if(cccConfigDO == null){
            return null;
        }
        CccConfigVO cccConfigVO = new CccConfigVO();
        BeanUtils.copyProperties(cccConfigDO, cccConfigVO);
        return cccConfigVO;
    }

    public static CccConfigDO toDO(CccConfigAddDTO cccConfigAddDTO) {
        if (cccConfigAddDTO == null) {
            return null;
        }
        CccConfigDO cccConfigDO = new CccConfigDO();
        BeanUtils.copyProperties(cccConfigAddDTO, cccConfigDO);
        return cccConfigDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy