blob: b1128bee35016795f368cc46585a9555bd48501a [file] [log] [blame]
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;
// 构造函数
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;
}
@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 +
"}";
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
}