|
@@ -0,0 +1,156 @@
|
|
|
|
+package com.zhentao.common.user.domain;
|
|
|
|
+
|
|
|
|
+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;
|
|
|
|
+import lombok.Data;
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ *
|
|
|
|
+ * @TableName travel_user
|
|
|
|
+ */
|
|
|
|
+@TableName(value ="travel_user")
|
|
|
|
+@Data
|
|
|
|
+public class TravelUser implements Serializable {
|
|
|
|
+ /**
|
|
|
|
+ * 用户id
|
|
|
|
+ */
|
|
|
|
+ @TableId
|
|
|
|
+ private Long id;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 用户昵称
|
|
|
|
+ */
|
|
|
|
+ private String nickname;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 手机号
|
|
|
|
+ */
|
|
|
|
+ private String phone;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 微信登录唯一标识
|
|
|
|
+ */
|
|
|
|
+ private String openId;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 密码
|
|
|
|
+ */
|
|
|
|
+ private String password;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 盐
|
|
|
|
+ */
|
|
|
|
+ private String salt;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 注册时间
|
|
|
|
+ */
|
|
|
|
+ private Date createTime;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 更新时间
|
|
|
|
+ */
|
|
|
|
+ private Date updateTime;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 用户头像
|
|
|
|
+ */
|
|
|
|
+ private String avatarUrl;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 是否删除
|
|
|
|
+ */
|
|
|
|
+ private Integer isDel;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 是否禁用
|
|
|
|
+ */
|
|
|
|
+ private Integer isBan;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 邮箱
|
|
|
|
+ */
|
|
|
|
+ private String email;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 用户年龄画像
|
|
|
|
+ */
|
|
|
|
+ private Integer userAges;
|
|
|
|
+
|
|
|
|
+ @TableField(exist = false)
|
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public boolean equals(Object that) {
|
|
|
|
+ if (this == that) {
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ if (that == null) {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (getClass() != that.getClass()) {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ TravelUser other = (TravelUser) that;
|
|
|
|
+ return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
|
|
|
+ && (this.getNickname() == null ? other.getNickname() == null : this.getNickname().equals(other.getNickname()))
|
|
|
|
+ && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
|
|
|
|
+ && (this.getOpenId() == null ? other.getOpenId() == null : this.getOpenId().equals(other.getOpenId()))
|
|
|
|
+ && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
|
|
|
|
+ && (this.getSalt() == null ? other.getSalt() == null : this.getSalt().equals(other.getSalt()))
|
|
|
|
+ && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
|
|
|
|
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
|
|
|
|
+ && (this.getAvatarUrl() == null ? other.getAvatarUrl() == null : this.getAvatarUrl().equals(other.getAvatarUrl()))
|
|
|
|
+ && (this.getIsDel() == null ? other.getIsDel() == null : this.getIsDel().equals(other.getIsDel()))
|
|
|
|
+ && (this.getIsBan() == null ? other.getIsBan() == null : this.getIsBan().equals(other.getIsBan()))
|
|
|
|
+ && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
|
|
|
|
+ && (this.getUserAges() == null ? other.getUserAges() == null : this.getUserAges().equals(other.getUserAges()));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public int hashCode() {
|
|
|
|
+ final int prime = 31;
|
|
|
|
+ int result = 1;
|
|
|
|
+ result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
|
|
|
+ result = prime * result + ((getNickname() == null) ? 0 : getNickname().hashCode());
|
|
|
|
+ result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
|
|
|
|
+ result = prime * result + ((getOpenId() == null) ? 0 : getOpenId().hashCode());
|
|
|
|
+ result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
|
|
|
|
+ result = prime * result + ((getSalt() == null) ? 0 : getSalt().hashCode());
|
|
|
|
+ result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
|
|
|
|
+ result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
|
|
|
|
+ result = prime * result + ((getAvatarUrl() == null) ? 0 : getAvatarUrl().hashCode());
|
|
|
|
+ result = prime * result + ((getIsDel() == null) ? 0 : getIsDel().hashCode());
|
|
|
|
+ result = prime * result + ((getIsBan() == null) ? 0 : getIsBan().hashCode());
|
|
|
|
+ result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
|
|
|
|
+ result = prime * result + ((getUserAges() == null) ? 0 : getUserAges().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(", nickname=").append(nickname);
|
|
|
|
+ sb.append(", phone=").append(phone);
|
|
|
|
+ sb.append(", openId=").append(openId);
|
|
|
|
+ sb.append(", password=").append(password);
|
|
|
|
+ sb.append(", salt=").append(salt);
|
|
|
|
+ sb.append(", createTime=").append(createTime);
|
|
|
|
+ sb.append(", updateTime=").append(updateTime);
|
|
|
|
+ sb.append(", avatorUrl=").append(avatarUrl);
|
|
|
|
+ sb.append(", isDel=").append(isDel);
|
|
|
|
+ sb.append(", isBan=").append(isBan);
|
|
|
|
+ sb.append(", email=").append(email);
|
|
|
|
+ sb.append(", userAges=").append(userAges);
|
|
|
|
+ sb.append(", serialVersionUID=").append(serialVersionUID);
|
|
|
|
+ sb.append("]");
|
|
|
|
+ return sb.toString();
|
|
|
|
+ }
|
|
|
|
+}
|