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