From d8143b9121bbe941f116230eaa5524ab2cc12a66 Mon Sep 17 00:00:00 2001 From: huliguo <2023611923@qq.com> Date: 星期四, 10 七月 2025 21:20:21 +0800 Subject: [PATCH] 新增 --- src/main/java/com/linghu/model/entity/User.java | 25 +++++++++++++++++++++++-- 1 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/linghu/model/entity/User.java b/src/main/java/com/linghu/model/entity/User.java index cbc51f6..885be39 100644 --- a/src/main/java/com/linghu/model/entity/User.java +++ b/src/main/java/com/linghu/model/entity/User.java @@ -1,5 +1,6 @@ package com.linghu.model.entity; +import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; @@ -9,6 +10,7 @@ import javax.validation.constraints.NotBlank; import javax.validation.constraints.Size; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; /** @@ -21,7 +23,7 @@ /** * 用户id */ - @TableId + @TableId(type = IdType.AUTO) private Integer user_id; /** @@ -47,7 +49,19 @@ /** * 手机号 */ + @ApiModelProperty(hidden = true) private Integer phone; + + /** + * 分组id + */ + private Integer sectionalization_id; + + + /** + * 状态 + */ + private String status; @TableField(exist = false) private static final long serialVersionUID = 1L; @@ -71,7 +85,10 @@ : this.getUser_email().equals(other.getUser_email())) && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword())) - && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone())); + && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone())) + && (this.getSectionalization_id() == null ? other.getSectionalization_id() == null : this.getSectionalization_id().equals(other.getSectionalization_id())) + && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) + ; } @Override @@ -83,6 +100,8 @@ result = prime * result + ((getUser_email() == null) ? 0 : getUser_email().hashCode()); result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode()); result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode()); + result = prime * result + ((getSectionalization_id() == null) ? 0 : getSectionalization_id().hashCode()); + result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); return result; } @@ -97,6 +116,8 @@ sb.append(", user_email=").append(user_email); sb.append(", password=").append(password); sb.append(", phone=").append(phone); + sb.append(", sectionalization_id=").append(sectionalization_id); + sb.append(", status=").append(status); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); -- Gitblit v1.7.1