提交 | 用户 | 时间
|
1ac2bc
|
1 |
package cn.stylefeng.guns.sys.modular.system.entity; |
懒 |
2 |
|
|
3 |
import com.baomidou.mybatisplus.annotation.TableName; |
|
4 |
import com.baomidou.mybatisplus.annotation.IdType; |
|
5 |
import java.util.Date; |
|
6 |
import com.baomidou.mybatisplus.annotation.TableId; |
|
7 |
import com.baomidou.mybatisplus.annotation.FieldFill; |
|
8 |
import com.baomidou.mybatisplus.annotation.TableField; |
|
9 |
import java.io.Serializable; |
|
10 |
|
|
11 |
/** |
|
12 |
* <p> |
|
13 |
* 角色表 |
|
14 |
* </p> |
|
15 |
* |
|
16 |
* @author stylefeng |
|
17 |
* @since 2019-04-01 |
|
18 |
*/ |
|
19 |
@TableName("sys_role") |
|
20 |
public class Role implements Serializable { |
|
21 |
|
|
22 |
private static final long serialVersionUID = 1L; |
|
23 |
|
|
24 |
/** |
|
25 |
* 主键id |
|
26 |
*/ |
|
27 |
@TableId(value = "role_id", type = IdType.ID_WORKER) |
|
28 |
private Long roleId; |
|
29 |
|
|
30 |
/** |
|
31 |
* 父角色id |
|
32 |
*/ |
|
33 |
@TableField("pid") |
|
34 |
private Long pid; |
|
35 |
|
|
36 |
/** |
|
37 |
* 角色名称 |
|
38 |
*/ |
|
39 |
@TableField("name") |
|
40 |
private String name; |
|
41 |
|
|
42 |
/** |
|
43 |
* 提示 |
|
44 |
*/ |
|
45 |
@TableField("description") |
|
46 |
private String description; |
|
47 |
|
|
48 |
/** |
|
49 |
* 序号 |
|
50 |
*/ |
|
51 |
@TableField("sort") |
|
52 |
private Integer sort; |
|
53 |
|
|
54 |
/** |
|
55 |
* 乐观锁 |
|
56 |
*/ |
|
57 |
@TableField("version") |
|
58 |
private Integer version; |
|
59 |
|
|
60 |
/** |
|
61 |
* 创建时间 |
|
62 |
*/ |
|
63 |
@TableField(value = "create_time", fill = FieldFill.INSERT) |
|
64 |
private Date createTime; |
|
65 |
|
|
66 |
/** |
|
67 |
* 修改时间 |
|
68 |
*/ |
|
69 |
@TableField(value = "update_time", fill = FieldFill.UPDATE) |
|
70 |
private Date updateTime; |
|
71 |
|
|
72 |
/** |
|
73 |
* 创建用户 |
|
74 |
*/ |
|
75 |
@TableField(value = "create_user", fill = FieldFill.INSERT) |
|
76 |
private Long createUser; |
|
77 |
|
|
78 |
/** |
|
79 |
* 修改用户 |
|
80 |
*/ |
|
81 |
@TableField(value = "update_user", fill = FieldFill.UPDATE) |
|
82 |
private Long updateUser; |
|
83 |
|
|
84 |
|
|
85 |
public Long getRoleId() { |
|
86 |
return roleId; |
|
87 |
} |
|
88 |
|
|
89 |
public void setRoleId(Long roleId) { |
|
90 |
this.roleId = roleId; |
|
91 |
} |
|
92 |
|
|
93 |
public Long getPid() { |
|
94 |
return pid; |
|
95 |
} |
|
96 |
|
|
97 |
public void setPid(Long pid) { |
|
98 |
this.pid = pid; |
|
99 |
} |
|
100 |
|
|
101 |
public String getName() { |
|
102 |
return name; |
|
103 |
} |
|
104 |
|
|
105 |
public void setName(String name) { |
|
106 |
this.name = name; |
|
107 |
} |
|
108 |
|
|
109 |
public String getDescription() { |
|
110 |
return description; |
|
111 |
} |
|
112 |
|
|
113 |
public void setDescription(String description) { |
|
114 |
this.description = description; |
|
115 |
} |
|
116 |
|
|
117 |
public Integer getSort() { |
|
118 |
return sort; |
|
119 |
} |
|
120 |
|
|
121 |
public void setSort(Integer sort) { |
|
122 |
this.sort = sort; |
|
123 |
} |
|
124 |
|
|
125 |
public Integer getVersion() { |
|
126 |
return version; |
|
127 |
} |
|
128 |
|
|
129 |
public void setVersion(Integer version) { |
|
130 |
this.version = version; |
|
131 |
} |
|
132 |
|
|
133 |
public Date getCreateTime() { |
|
134 |
return createTime; |
|
135 |
} |
|
136 |
|
|
137 |
public void setCreateTime(Date createTime) { |
|
138 |
this.createTime = createTime; |
|
139 |
} |
|
140 |
|
|
141 |
public Date getUpdateTime() { |
|
142 |
return updateTime; |
|
143 |
} |
|
144 |
|
|
145 |
public void setUpdateTime(Date updateTime) { |
|
146 |
this.updateTime = updateTime; |
|
147 |
} |
|
148 |
|
|
149 |
public Long getCreateUser() { |
|
150 |
return createUser; |
|
151 |
} |
|
152 |
|
|
153 |
public void setCreateUser(Long createUser) { |
|
154 |
this.createUser = createUser; |
|
155 |
} |
|
156 |
|
|
157 |
public Long getUpdateUser() { |
|
158 |
return updateUser; |
|
159 |
} |
|
160 |
|
|
161 |
public void setUpdateUser(Long updateUser) { |
|
162 |
this.updateUser = updateUser; |
|
163 |
} |
|
164 |
|
|
165 |
@Override |
|
166 |
public String toString() { |
|
167 |
return "Role{" + |
|
168 |
"roleId=" + roleId + |
|
169 |
", pid=" + pid + |
|
170 |
", name=" + name + |
|
171 |
", description=" + description + |
|
172 |
", sort=" + sort + |
|
173 |
", version=" + version + |
|
174 |
", createTime=" + createTime + |
|
175 |
", updateTime=" + updateTime + |
|
176 |
", createUser=" + createUser + |
|
177 |
", updateUser=" + updateUser + |
|
178 |
"}"; |
|
179 |
} |
|
180 |
} |