This commit is contained in:
2018-05-27 11:46:12 +08:00
parent 9011563784
commit ba0c5448fc
7 changed files with 48 additions and 22 deletions

View File

@@ -49,6 +49,9 @@ public class User implements java.io.Serializable {
@Column(length = 32, comment = "[邮箱]")
private String email = "";
@Column(length = 2, comment = "[用户角色]")
private int roleId = 0;
@Column(comment = "[创建时间]", updatable = false)
private long createTime;
@@ -153,6 +156,14 @@ public class User implements java.io.Serializable {
this.email = email;
}
public int getRoleId() {
return roleId;
}
public void setRoleId(int roleId) {
this.roleId = roleId;
}
public long getCreateTime() {
return createTime;
}
@@ -201,6 +212,7 @@ public class User implements java.io.Serializable {
userInfo.setAvatar(avatar);
userInfo.setRelaname(realname);
userInfo.setEmail(email);
userInfo.setRoleId(roleId);
userInfo.setCreateTime(createTime);
userInfo.setSign(sign);
userInfo.setCity(city);

View File

@@ -18,29 +18,18 @@ public class UserInfo implements java.io.Serializable {
private int userId;
private String username = "";
private int sex = 1;
private String password = "";
private String phone = "";
private String nickname = "";
private String avatar = "";
private String relaname = "";
private String email = "";
private int roleId = 0;
private long createTime;
private String sign = "";
private String city = "";
private int status = 1;
private String time = "";
public void setUserId(int userId) {
@@ -116,6 +105,14 @@ public class UserInfo implements java.io.Serializable {
return this.email == null || this.email.isEmpty() ? "" : this.email;
}
public int getRoleId() {
return roleId;
}
public void setRoleId(int roleId) {
this.roleId = roleId;
}
public void setCreateTime(long createTime) {
this.createTime = createTime;
}