package com.lingdong.usercenter.model.domain;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
/**
*
* @TableName yupi1
*/
@TableName(value ="yupi1")
public class Yupi1 implements Serializable {
/**
* id
*/
@TableId(type = IdType.AUTO)
private Long id;
/**
* 用户昵称
*/
private String username;
/**
* 账户
*/
private String userAccount;
/**
* 用户头像
*/
private String avatarUrl;
/**
* 性别
*/
private Integer gender;
/**
* 密码
*/
private String userPassword;
/**
* 电话
*/
private String phone;
/**
* 邮箱
*/
private String email;
/**
* 状态 : 0--> 正常
*/
private Integer userStatus;
/**
* 创建时间
*/
private Date createTime;
/**
*
*/
private Date updateTime;
/**
* 是否删除
*/
@TableLogic
private Integer isDelete;
/**
* 用户角色 0 - 普通用户 1 - 管理员
*/
private Integer userRole;
/**
* 星球编号
*/
private String planetCode;
@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 getUserAccount() {
return userAccount;
}
/**
* 账户
*/
public void setUserAccount(String userAccount) {
this.userAccount = userAccount;
}
/**
* 用户头像
*/
public String getAvatarUrl() {
return avatarUrl;
}
/**
* 用户头像
*/
public void setAvatarUrl(String avatarUrl) {
this.avatarUrl = avatarUrl;
}
/**
* 性别
*/
public Integer getGender() {
return gender;
}
/**
* 性别
*/
public void setGender(Integer gender) {
this.gender = gender;
}
/**
* 密码
*/
public String getUserPassword() {
return userPassword;
}
/**
* 密码
*/
public void setUserPassword(String userPassword) {
this.userPassword = userPassword;
}
/**
* 电话
*/
public String getPhone() {
return phone;
}
/**
* 电话
*/
public void setPhone(String phone) {
this.phone = phone;
}
/**
* 邮箱
*/
public String getEmail() {
return email;
}
/**
* 邮箱
*/
public void setEmail(String email) {
this.email = email;
}
/**
* 状态 : 0--> 正常
*/
public Integer getUserStatus() {
return userStatus;
}
/**
* 状态 : 0--> 正常
*/
public void setUserStatus(Integer userStatus) {
this.userStatus = userStatus;
}
/**
* 创建时间
*/
public Date getCreateTime() {
return createTime;
}
/**
* 创建时间
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
*
*/
public Date getUpdateTime() {
return updateTime;
}
/**
*
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
/**
* 是否删除
*/
public Integer getIsDelete() {
return isDelete;
}
/**
* 是否删除
*/
public void setIsDelete(Integer isDelete) {
this.isDelete = isDelete;
}
/**
* 用户角色 0 - 普通用户 1 - 管理员
*/
public Integer getUserRole() {
return userRole;
}
/**
* 用户角色 0 - 普通用户 1 - 管理员
*/
public void setUserRole(Integer userRole) {
this.userRole = userRole;
}
/**
* 星球编号
*/
public String getPlanetCode() {
return planetCode;
}
/**
* 星球编号
*/
public void setPlanetCode(String planetCode) {
this.planetCode = planetCode;
}
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
Yupi1 other = (Yupi1) 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.getUserAccount() == null ? other.getUserAccount() == null : this.getUserAccount().equals(other.getUserAccount()))
&& (this.getAvatarUrl() == null ? other.getAvatarUrl() == null : this.getAvatarUrl().equals(other.getAvatarUrl()))
&& (this.getGender() == null ? other.getGender() == null : this.getGender().equals(other.getGender()))
&& (this.getUserPassword() == null ? other.getUserPassword() == null : this.getUserPassword().equals(other.getUserPassword()))
&& (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
&& (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
&& (this.getUserStatus() == null ? other.getUserStatus() == null : this.getUserStatus().equals(other.getUserStatus()))
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
&& (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()))
&& (this.getUserRole() == null ? other.getUserRole() == null : this.getUserRole().equals(other.getUserRole()))
&& (this.getPlanetCode() == null ? other.getPlanetCode() == null : this.getPlanetCode().equals(other.getPlanetCode()));
}
@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 + ((getUserAccount() == null) ? 0 : getUserAccount().hashCode());
result = prime * result + ((getAvatarUrl() == null) ? 0 : getAvatarUrl().hashCode());
result = prime * result + ((getGender() == null) ? 0 : getGender().hashCode());
result = prime * result + ((getUserPassword() == null) ? 0 : getUserPassword().hashCode());
result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
result = prime * result + ((getUserStatus() == null) ? 0 : getUserStatus().hashCode());
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
result = prime * result + ((getUserRole() == null) ? 0 : getUserRole().hashCode());
result = prime * result + ((getPlanetCode() == null) ? 0 : getPlanetCode().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();