blob: 7fc13e7ec7f63d7f0d3f336e52d817b1a1415b0d [file] [log] [blame]
刘嘉昕f28ea232025-04-15 16:55:43 +08001package com.pt5.pthouduan.entity;
2
3import com.baomidou.mybatisplus.annotation.TableId;
4import com.baomidou.mybatisplus.annotation.TableName;
5
6import java.io.Serializable;
7import java.time.LocalDateTime;
8
9/**
10 * <p>
21301050c519f712025-06-04 17:03:04 +080011 *
刘嘉昕f28ea232025-04-15 16:55:43 +080012 * </p>
13 *
14 * @author ljx
15 * @since 2025-04-14
16 */
17@TableName("user")
18public class User implements Serializable {
19
20 private static final long serialVersionUID = 1L;
21
22 private String username;
23
24 private String password;
25
26 private Integer userUpload;
27
28 private Long userDownload;
29
30 private Integer credit;
31
32 private String image;
33
34 private String sex;
35
36 @TableId("userid")
37 private Long userid;
38
39 private Integer gradeId;
40
41 private String passkey;
42
刘嘉昕f28ea232025-04-15 16:55:43 +080043 private Double ratio;
44
45 private Integer age;
46
47 private Integer privacy;
48
Sure2338188c5d2025-05-28 11:43:06 +080049 private String email;
50
21301050c519f712025-06-04 17:03:04 +080051 private String decoration;//用户外观
52
53 private String permission;//用户权限 1表示普通用户 0表示管理员
54
刘嘉昕f28ea232025-04-15 16:55:43 +080055 // 构造函数
56 public User(Long id, String name) {
57 this.userid = id;
58 this.username = name;
59 }
60
61 public String getUsername() {
62 return username;
Sure2338188c5d2025-05-28 11:43:06 +080063 }//用户名
刘嘉昕f28ea232025-04-15 16:55:43 +080064
65 public void setUsername(String username) {
66 this.username = username;
67 }
68
69 public String getPassword() {
70 return password;
Sure2338188c5d2025-05-28 11:43:06 +080071 }//密码
刘嘉昕f28ea232025-04-15 16:55:43 +080072
73 public void setPassword(String password) {
74 this.password = password;
75 }
76
77 public Integer getUserUpload() {
78 return userUpload;
Sure2338188c5d2025-05-28 11:43:06 +080079 }//上传量
刘嘉昕f28ea232025-04-15 16:55:43 +080080
81 public void setUserUpload(Integer userUpload) {
82 this.userUpload = userUpload;
83 }
84
85 public Long getUserDownload() {
86 return userDownload;
Sure2338188c5d2025-05-28 11:43:06 +080087 }//下载量
刘嘉昕f28ea232025-04-15 16:55:43 +080088
89 public void setUserDownload(Long userDownload) {
90 this.userDownload = userDownload;
91 }
92
93 public Integer getCredit() {
94 return credit;
Sure2338188c5d2025-05-28 11:43:06 +080095 }//保种积分
刘嘉昕f28ea232025-04-15 16:55:43 +080096
97 public void setCredit(Integer credit) {
98 this.credit = credit;
99 }
100
101 public String getImage() {
102 return image;
Sure2338188c5d2025-05-28 11:43:06 +0800103 }//头像
刘嘉昕f28ea232025-04-15 16:55:43 +0800104
105 public void setImage(String image) {
106 this.image = image;
107 }
108
109 public String getSex() {
110 return sex;
Sure2338188c5d2025-05-28 11:43:06 +0800111 }//性别
刘嘉昕f28ea232025-04-15 16:55:43 +0800112
113 public void setSex(String sex) {
114 this.sex = sex;
115 }
116
117 public Long getUserid() {
118 return userid;
119 }
120
121 public void setUserid(Long userid) {
122 this.userid = userid;
123 }
124
125 public Integer getGradeId() {
126 return gradeId;
Sure2338188c5d2025-05-28 11:43:06 +0800127 }//等级
刘嘉昕f28ea232025-04-15 16:55:43 +0800128
129 public void setGradeId(Integer gradeId) {
130 this.gradeId = gradeId;
131 }
132
133 public String getPasskey() {
134 return passkey;
Sure2338188c5d2025-05-28 11:43:06 +0800135 }//密码
刘嘉昕f28ea232025-04-15 16:55:43 +0800136
137 public void setPasskey(String passkey) {
138 this.passkey = passkey;
139 }
140
刘嘉昕f28ea232025-04-15 16:55:43 +0800141 public Double getRatio() {
142 return ratio;
Sure2338188c5d2025-05-28 11:43:06 +0800143 }//分享率
刘嘉昕f28ea232025-04-15 16:55:43 +0800144
145 public void setRatio(Double ratio) {
146 this.ratio = ratio;
147 }
148
149 public Integer getAge() {
150 return age;
Sure2338188c5d2025-05-28 11:43:06 +0800151 }//年龄
刘嘉昕f28ea232025-04-15 16:55:43 +0800152
153 public void setAge(Integer age) {
154 this.age = age;
155 }
156
157 public Integer getPrivacy() {
158 return privacy;
Sure2338188c5d2025-05-28 11:43:06 +0800159 }//权限
刘嘉昕f28ea232025-04-15 16:55:43 +0800160
161 public void setPrivacy(Integer privacy) {
162 this.privacy = privacy;
163 }
164
Sure2338188c5d2025-05-28 11:43:06 +0800165 public String getEmail() {
166 return email;
167 }
168
169 public void setEmail(String email) {
170 this.email = email;
171 }
21301050c519f712025-06-04 17:03:04 +0800172
173 public String getDecoration() {
174 return decoration;
175 }
176
177 public void setDecoration(String decoration) {
178 this.decoration = decoration;
179 }
180
181 public String getPermission() {
182 return permission;
183 }
184
185 public void setPermission(String permission) {
186 this.permission = permission;
187 }
188
189 @Override
190 public String toString() {
191 return "User{" +
192 "username='" + username + '\'' +
193 ", password='" + password + '\'' +
194 ", userUpload=" + userUpload +
195 ", userDownload=" + userDownload +
196 ", credit=" + credit +
197 ", image='" + image + '\'' +
198 ", sex='" + sex + '\'' +
199 ", userid=" + userid +
200 ", gradeId=" + gradeId +
201 ", passkey='" + passkey + '\'' +
202 ", ratio=" + ratio +
203 ", age=" + age +
204 ", privacy=" + privacy +
205 ", email='" + email + '\'' +
206 ", decoration='" + decoration + '\'' +
207 ", permission='" + permission + '\'' +
208 '}';
209 }
刘嘉昕f28ea232025-04-15 16:55:43 +0800210}