package com.example.model; import java.util.Date; public class User { private Long id; private String username; private String email; private String password; private String fullName; private String phone; private Date createTime; private Date updateTime; private boolean active; // 默认构造函数 public User() { } // 带参数的构造函数 public User(Long id, String username, String email, String password, String fullName, String phone, Date createTime, Date updateTime, boolean active) { this.id = id; this.username = username; this.email = email; this.password = password; this.fullName = fullName; this.phone = phone; this.createTime = createTime; this.updateTime = updateTime; this.active = active; } // Getter和Setter方法 public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getFullName() { return fullName; } public void setFullName(String fullName) { this.fullName = fullName; } public String getPhone() { return phone; } public void setPhone(String phone) { this.phone = phone; } 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 boolean isActive() { return active; } public void setActive(boolean active) { this.active = active; } @Override public String toString() { return "User{" + "id=" + id + ", username='" + username + '\'' + ", email='" + email + '\'' + ", fullName='" + fullName + '\'' + ", phone='" + phone + '\'' + ", createTime=" + createTime + ", updateTime=" + updateTime + ", active=" + active + '}'; } }