| package com.pt5.pthouduan.entity; |
| |
| import com.baomidou.mybatisplus.annotation.TableId; |
| import com.baomidou.mybatisplus.annotation.TableName; |
| |
| import java.io.Serializable; |
| import java.time.LocalDateTime; |
| |
| /** |
| * <p> |
| * |
| * </p> |
| * |
| * @author ljx |
| * @since 2025-04-14 |
| */ |
| @TableName("user") |
| public class User implements Serializable { |
| |
| private static final long serialVersionUID = 1L; |
| |
| private String username; |
| |
| private String password; |
| |
| private Integer userUpload; |
| |
| private Long userDownload; |
| |
| private Integer credit; |
| |
| private String image; |
| |
| private String sex; |
| |
| @TableId("userid") |
| private Long userid; |
| |
| private Integer gradeId; |
| |
| private String passkey; |
| |
| private Double ratio; |
| |
| private Integer age; |
| |
| private Integer privacy; |
| |
| private String email; |
| |
| private String decoration;//用户外观 |
| |
| private String permission;//用户权限 1表示普通用户 0表示管理员 |
| |
| // 构造函数 |
| public User(Long id, String name) { |
| this.userid = id; |
| this.username = name; |
| } |
| |
| public String getUsername() { |
| return username; |
| }//用户名 |
| |
| public void setUsername(String username) { |
| this.username = username; |
| } |
| |
| public String getPassword() { |
| return password; |
| }//密码 |
| |
| public void setPassword(String password) { |
| this.password = password; |
| } |
| |
| public Integer getUserUpload() { |
| return userUpload; |
| }//上传量 |
| |
| public void setUserUpload(Integer userUpload) { |
| this.userUpload = userUpload; |
| } |
| |
| public Long getUserDownload() { |
| return userDownload; |
| }//下载量 |
| |
| public void setUserDownload(Long userDownload) { |
| this.userDownload = userDownload; |
| } |
| |
| public Integer getCredit() { |
| return credit; |
| }//保种积分 |
| |
| public void setCredit(Integer credit) { |
| this.credit = credit; |
| } |
| |
| public String getImage() { |
| return image; |
| }//头像 |
| |
| public void setImage(String image) { |
| this.image = image; |
| } |
| |
| public String getSex() { |
| return sex; |
| }//性别 |
| |
| public void setSex(String sex) { |
| this.sex = sex; |
| } |
| |
| public Long getUserid() { |
| return userid; |
| } |
| |
| public void setUserid(Long userid) { |
| this.userid = userid; |
| } |
| |
| public Integer getGradeId() { |
| return gradeId; |
| }//等级 |
| |
| public void setGradeId(Integer gradeId) { |
| this.gradeId = gradeId; |
| } |
| |
| public String getPasskey() { |
| return passkey; |
| }//密码 |
| |
| public void setPasskey(String passkey) { |
| this.passkey = passkey; |
| } |
| |
| public Double getRatio() { |
| return ratio; |
| }//分享率 |
| |
| public void setRatio(Double ratio) { |
| this.ratio = ratio; |
| } |
| |
| public Integer getAge() { |
| return age; |
| }//年龄 |
| |
| public void setAge(Integer age) { |
| this.age = age; |
| } |
| |
| public Integer getPrivacy() { |
| return privacy; |
| }//权限 |
| |
| public void setPrivacy(Integer privacy) { |
| this.privacy = privacy; |
| } |
| |
| public String getEmail() { |
| return email; |
| } |
| |
| public void setEmail(String email) { |
| this.email = email; |
| } |
| |
| public String getDecoration() { |
| return decoration; |
| } |
| |
| public void setDecoration(String decoration) { |
| this.decoration = decoration; |
| } |
| |
| public String getPermission() { |
| return permission; |
| } |
| |
| public void setPermission(String permission) { |
| this.permission = permission; |
| } |
| |
| @Override |
| public String toString() { |
| return "User{" + |
| "username='" + username + '\'' + |
| ", password='" + password + '\'' + |
| ", userUpload=" + userUpload + |
| ", userDownload=" + userDownload + |
| ", credit=" + credit + |
| ", image='" + image + '\'' + |
| ", sex='" + sex + '\'' + |
| ", userid=" + userid + |
| ", gradeId=" + gradeId + |
| ", passkey='" + passkey + '\'' + |
| ", ratio=" + ratio + |
| ", age=" + age + |
| ", privacy=" + privacy + |
| ", email='" + email + '\'' + |
| ", decoration='" + decoration + '\'' + |
| ", permission='" + permission + '\'' + |
| '}'; |
| } |
| } |