package com.skua.modules.system.model; import java.io.Serializable; import java.util.Date; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.skua.modules.system.entity.SysDict; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; /** * 字典表 */ @Data @EqualsAndHashCode(callSuper = false) @Accessors(chain = true) public class SysDictTree implements Serializable { private static final long serialVersionUID = 1L; private String key; private String title; /** * id */ @TableId(type = IdType.UUID) private String id; /** * 字典类型,0 string,1 number类型,2 boolean * 前端js对stirng类型和number类型 boolean 类型敏感,需要区分。在select 标签匹配的时候会用到 * 默认为string类型 */ private Integer type; /** * 字典名称 */ private String dictName; /** * 字典编码 */ private String dictCode; /** * 描述 */ private String description; /** * 删除状态 */ private Integer delFlag; /** * 创建人 */ private String createBy; /** * 创建时间 */ private Date createTime; /** * 更新人 */ private String updateBy; /** * 更新时间 */ private Date updateTime; public SysDictTree(SysDict node) { this.id = node.getId(); this.key = node.getId(); this.title = node.getDictName(); this.dictCode = node.getDictCode(); this.description = node.getDescription(); this.delFlag = node.getDelFlag(); this.type = node.getType(); } }