DictEntity.java 1.76 KB
Newer Older
Fred's avatar
Fred committed
1 2
package com.govmade.modules.system.entity;

刘弈臻's avatar
刘弈臻 committed
3 4
import java.util.List;

Fred's avatar
Fred committed
5 6
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
Fred's avatar
Fred committed
7 8 9
import com.govmade.modules.basic.entity.BaseEntity;

/**
Fred's avatar
Fred committed
10
 * 系统管理 - 字典設置
Fred's avatar
Fred committed
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
 * 
 * @author Fred
 * @email fangtaosh@qq.com
 * @date 2018年8月7日
 */
@TableName("system_dicts")
public class DictEntity extends BaseEntity<Long> {

	private static final long serialVersionUID = 1L;

	private Long pid; // 父级ID

	private String name; // 字典名

	private String value; // 字典值
刘弈臻's avatar
刘弈臻 committed
26 27
	
	private Long rootId; //根Id
Fred's avatar
Fred committed
28 29 30 31 32 33

	private Integer type; // 类型

	private Integer weight; // 权重

	private String remark; // 备注
刘弈臻's avatar
刘弈臻 committed
34 35 36
	
	@TableField(exist=false)
	private List<DictEntity> children;
Fred's avatar
Fred committed
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59

	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
刘弈臻's avatar
刘弈臻 committed
60 61 62 63 64 65 66 67
	}	

	public Long getRootId() {
		return rootId;
	}

	public void setRootId(Long rootId) {
		this.rootId = rootId;
Fred's avatar
Fred committed
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getWeight() {
		return weight;
	}

	public void setWeight(Integer weight) {
		this.weight = weight;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
刘弈臻's avatar
刘弈臻 committed
93 94 95 96 97 98 99 100

	public List<DictEntity> getChildren() {
		return children;
	}

	public void setChildren(List<DictEntity> children) {
		this.children = children;
	}	
Fred's avatar
Fred committed
101
}