blob: 3a765b810c043a39866afea9a9518cebac4d5592 [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>
11 *
12 * </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
43 private LocalDateTime userCreatedTime;
44
45 private Double ratio;
46
47 private Integer age;
48
49 private Integer privacy;
50
51 // 构造函数
52 public User(Long id, String name) {
53 this.userid = id;
54 this.username = name;
55 }
56
57 public String getUsername() {
58 return username;
59 }
60
61 public void setUsername(String username) {
62 this.username = username;
63 }
64
65 public String getPassword() {
66 return password;
67 }
68
69 public void setPassword(String password) {
70 this.password = password;
71 }
72
73 public Integer getUserUpload() {
74 return userUpload;
75 }
76
77 public void setUserUpload(Integer userUpload) {
78 this.userUpload = userUpload;
79 }
80
81 public Long getUserDownload() {
82 return userDownload;
83 }
84
85 public void setUserDownload(Long userDownload) {
86 this.userDownload = userDownload;
87 }
88
89 public Integer getCredit() {
90 return credit;
91 }
92
93 public void setCredit(Integer credit) {
94 this.credit = credit;
95 }
96
97 public String getImage() {
98 return image;
99 }
100
101 public void setImage(String image) {
102 this.image = image;
103 }
104
105 public String getSex() {
106 return sex;
107 }
108
109 public void setSex(String sex) {
110 this.sex = sex;
111 }
112
113 public Long getUserid() {
114 return userid;
115 }
116
117 public void setUserid(Long userid) {
118 this.userid = userid;
119 }
120
121 public Integer getGradeId() {
122 return gradeId;
123 }
124
125 public void setGradeId(Integer gradeId) {
126 this.gradeId = gradeId;
127 }
128
129 public String getPasskey() {
130 return passkey;
131 }
132
133 public void setPasskey(String passkey) {
134 this.passkey = passkey;
135 }
136
137 public LocalDateTime getUserCreatedTime() {
138 return userCreatedTime;
139 }
140
141 public void setUserCreatedTime(LocalDateTime userCreatedTime) {
142 this.userCreatedTime = userCreatedTime;
143 }
144
145 public Double getRatio() {
146 return ratio;
147 }
148
149 public void setRatio(Double ratio) {
150 this.ratio = ratio;
151 }
152
153 public Integer getAge() {
154 return age;
155 }
156
157 public void setAge(Integer age) {
158 this.age = age;
159 }
160
161 public Integer getPrivacy() {
162 return privacy;
163 }
164
165 public void setPrivacy(Integer privacy) {
166 this.privacy = privacy;
167 }
168
169 @Override
170 public String toString() {
171 return "User{" +
172 "username = " + username +
173 ", password = " + password +
174 ", userUpload = " + userUpload +
175 ", userDownload = " + userDownload +
176 ", credit = " + credit +
177 ", image = " + image +
178 ", sex = " + sex +
179 ", userid = " + userid +
180 ", gradeId = " + gradeId +
181 ", passkey = " + passkey +
182 ", userCreatedTime = " + userCreatedTime +
183 ", ratio = " + ratio +
184 ", age = " + age +
185 ", privacy = " + privacy +
186 "}";
187 }
188}