123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402 |
- package com.futu.goose.user.pojo;
- import com.baomidou.mybatisplus.annotation.IdType;
- import com.baomidou.mybatisplus.annotation.TableField;
- import com.baomidou.mybatisplus.annotation.TableId;
- import com.baomidou.mybatisplus.annotation.TableName;
- import java.io.Serializable;
- import java.util.Date;
- /**
- * 基础用户表
- * @TableName t_user
- */
- @TableName(value ="t_user")
- public class TUser implements Serializable {
- /**
- * 用户ID,主键
- */
- @TableId
- private Long id;
- /**
- * 用户名
- */
- private String username;
- /**
- * 盐值
- */
- private String salt;
- public String getCode() {
- return code;
- }
- public void setCode(String code) {
- this.code = code;
- }
- // 添加无参构造函数
- public TUser() {
- }
- public TUser(String code) {
- this.code = code;
- }
- /**
- * 验证码
- */
- @TableField(exist = false)
- private String code;
- /**
- * 密码(加密存储)
- */
- private String password;
- /**
- * 邮箱
- */
- private String email;
- /**
- * 手机号
- */
- private String phone;
- /**
- * 昵称
- */
- private String nickname;
- /**
- * 头像URL
- */
- private String avatar;
- /**
- * 性别(0-未知 1-男 2-女)
- */
- private Integer gender;
- /**
- * 生日
- */
- private Date birthday;
- /**
- * 状态(0-禁用 1-正常)
- */
- private Integer status;
- /**
- * 最后登录时间
- */
- private Date lastLoginTime;
- /**
- * 最后登录IP
- */
- private String lastLoginIp;
- /**
- * 创建时间
- */
- private Date createdTime;
- /**
- * 更新时间
- */
- private Date updatedTime;
- @TableField(exist = false)
- private static final long serialVersionUID = 1L;
- /**
- * 用户ID,主键
- */
- public Long getId() {
- return id;
- }
- /**
- * 用户ID,主键
- */
- public void setId(Long id) {
- this.id = id;
- }
- /**
- * 用户名
- */
- public String getUsername() {
- return username;
- }
- /**
- * 用户名
- */
- public void setUsername(String username) {
- this.username = username;
- }
- /**
- * 盐值
- */
- public String getSalt() {
- return salt;
- }
- /**
- * 盐值
- */
- public void setSalt(String salt) {
- this.salt = salt;
- }
- /**
- * 密码(加密存储)
- */
- public String getPassword() {
- return password;
- }
- /**
- * 密码(加密存储)
- */
- public void setPassword(String password) {
- this.password = password;
- }
- /**
- * 邮箱
- */
- public String getEmail() {
- return email;
- }
- /**
- * 邮箱
- */
- public void setEmail(String email) {
- this.email = email;
- }
- /**
- * 手机号
- */
- public String getPhone() {
- return phone;
- }
- /**
- * 手机号
- */
- public void setPhone(String phone) {
- this.phone = phone;
- }
- /**
- * 昵称
- */
- public String getNickname() {
- return nickname;
- }
- /**
- * 昵称
- */
- public void setNickname(String nickname) {
- this.nickname = nickname;
- }
- /**
- * 头像URL
- */
- public String getAvatar() {
- return avatar;
- }
- /**
- * 头像URL
- */
- public void setAvatar(String avatar) {
- this.avatar = avatar;
- }
- /**
- * 性别(0-未知 1-男 2-女)
- */
- public Integer getGender() {
- return gender;
- }
- /**
- * 性别(0-未知 1-男 2-女)
- */
- public void setGender(Integer gender) {
- this.gender = gender;
- }
- /**
- * 生日
- */
- public Date getBirthday() {
- return birthday;
- }
- /**
- * 生日
- */
- public void setBirthday(Date birthday) {
- this.birthday = birthday;
- }
- /**
- * 状态(0-禁用 1-正常)
- */
- public Integer getStatus() {
- return status;
- }
- /**
- * 状态(0-禁用 1-正常)
- */
- public void setStatus(Integer status) {
- this.status = status;
- }
- /**
- * 最后登录时间
- */
- public Date getLastLoginTime() {
- return lastLoginTime;
- }
- /**
- * 最后登录时间
- */
- public void setLastLoginTime(Date lastLoginTime) {
- this.lastLoginTime = lastLoginTime;
- }
- /**
- * 最后登录IP
- */
- public String getLastLoginIp() {
- return lastLoginIp;
- }
- /**
- * 最后登录IP
- */
- public void setLastLoginIp(String lastLoginIp) {
- this.lastLoginIp = lastLoginIp;
- }
- /**
- * 创建时间
- */
- public Date getCreatedTime() {
- return createdTime;
- }
- /**
- * 创建时间
- */
- public void setCreatedTime(Date createdTime) {
- this.createdTime = createdTime;
- }
- /**
- * 更新时间
- */
- public Date getUpdatedTime() {
- return updatedTime;
- }
- /**
- * 更新时间
- */
- public void setUpdatedTime(Date updatedTime) {
- this.updatedTime = updatedTime;
- }
- @Override
- public boolean equals(Object that) {
- if (this == that) {
- return true;
- }
- if (that == null) {
- return false;
- }
- if (getClass() != that.getClass()) {
- return false;
- }
- TUser other = (TUser) that;
- return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
- && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
- && (this.getSalt() == null ? other.getSalt() == null : this.getSalt().equals(other.getSalt()))
- && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
- && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
- && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
- && (this.getNickname() == null ? other.getNickname() == null : this.getNickname().equals(other.getNickname()))
- && (this.getAvatar() == null ? other.getAvatar() == null : this.getAvatar().equals(other.getAvatar()))
- && (this.getGender() == null ? other.getGender() == null : this.getGender().equals(other.getGender()))
- && (this.getBirthday() == null ? other.getBirthday() == null : this.getBirthday().equals(other.getBirthday()))
- && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
- && (this.getLastLoginTime() == null ? other.getLastLoginTime() == null : this.getLastLoginTime().equals(other.getLastLoginTime()))
- && (this.getLastLoginIp() == null ? other.getLastLoginIp() == null : this.getLastLoginIp().equals(other.getLastLoginIp()))
- && (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime()))
- && (this.getUpdatedTime() == null ? other.getUpdatedTime() == null : this.getUpdatedTime().equals(other.getUpdatedTime()));
- }
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
- result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
- result = prime * result + ((getSalt() == null) ? 0 : getSalt().hashCode());
- result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
- result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
- result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
- result = prime * result + ((getNickname() == null) ? 0 : getNickname().hashCode());
- result = prime * result + ((getAvatar() == null) ? 0 : getAvatar().hashCode());
- result = prime * result + ((getGender() == null) ? 0 : getGender().hashCode());
- result = prime * result + ((getBirthday() == null) ? 0 : getBirthday().hashCode());
- result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
- result = prime * result + ((getLastLoginTime() == null) ? 0 : getLastLoginTime().hashCode());
- result = prime * result + ((getLastLoginIp() == null) ? 0 : getLastLoginIp().hashCode());
- result = prime * result + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode());
- result = prime * result + ((getUpdatedTime() == null) ? 0 : getUpdatedTime().hashCode());
- return result;
- }
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append(getClass().getSimpleName());
- sb.append(" [");
- sb.append("Hash = ").append(hashCode());
- sb.append(", id=").append(id);
- sb.append(", username=").append(username);
- sb.append(", salt=").append(salt);
- sb.append(", password=").append(password);
- sb.append(", email=").append(email);
- sb.append(", phone=").append(phone);
- sb.append(", nickname=").append(nickname);
- sb.append(", avatar=").append(avatar);
- sb.append(", gender=").append(gender);
- sb.append(", birthday=").append(birthday);
- sb.append(", status=").append(status);
- sb.append(", lastLoginTime=").append(lastLoginTime);
- sb.append(", lastLoginIp=").append(lastLoginIp);
- sb.append(", createdTime=").append(createdTime);
- sb.append(", updatedTime=").append(updatedTime);
- sb.append(", serialVersionUID=").append(serialVersionUID);
- sb.append("]");
- return sb.toString();
- }
- }
|