User.java
2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
package com.sinocontact.app.entity;
/**
* 使用者
* @author todd
* @since 2019-1-10
*/
public class User {
/**
* 用户ID
*/
private Integer userId;
/**
* 用户账户
*/
private String account;
/**
* 用户密码
*/
private String password;
/**
* 昵称
*/
private String nickname;
/**
* 电话号码
*/
private String phoneNumber;
/**
* 用户角色 1:读者;10:作者;100:管理员
*/
private Integer role;
/**
* 状态 0:有效;-1:无效
*/
private Integer status;
/**
* 申请成为作者状态 0 未申请,1 已申请
*/
private Integer applyAuthorStatus;
/**
* 每日投推荐票的次数
*/
private Integer recommendTimes;
/**
* 创建时间
*/
private String createTime;
/**
* 更新时间
*/
private String updateTime;
public Integer getRecommendTimes() {
return recommendTimes;
}
public void setRecommendTimes(Integer recommendTimes) {
this.recommendTimes = recommendTimes;
}
public Integer getApplyAuthorStatus() {
return applyAuthorStatus;
}
public void setApplyAuthorStatus(Integer applyAuthorStatus) {
this.applyAuthorStatus = applyAuthorStatus;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public String getAccount() {
return account;
}
public void setAccount(String account) {
this.account = account;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getNickname() {
return nickname;
}
public void setNickname(String nickname) {
this.nickname = nickname;
}
public String getPhoneNumber() {
return phoneNumber;
}
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}
public Integer getRole() {
return role;
}
public void setRole(Integer role) {
this.role = role;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public String getUpdateTime() {
return updateTime;
}
public void setUpdateTime(String updateTime) {
this.updateTime = updateTime;
}
@Override
public String toString() {
return "{" +
"\"userId\":\"" + userId +"\""+
",\"account\":\"" + account + "\""+
",\"nickname\":\"" + nickname +"\""+
",\"password\":\"" + password +"\""+
",\"role\":\"" + role +"\""+
",\"applyAuthorStatus\":\"" + applyAuthorStatus +"\""+
"}";
}
}