89 lines
1.6 KiB
Java
89 lines
1.6 KiB
Java
|
package com.example.chat.entity;
|
||
|
|
||
|
public class User {
|
||
|
private String username;
|
||
|
private String password;
|
||
|
private String account;
|
||
|
|
||
|
private String email;
|
||
|
|
||
|
|
||
|
public User() {
|
||
|
}
|
||
|
|
||
|
public User(String username, String password, String account, String email) {
|
||
|
this.username = username;
|
||
|
this.password = password;
|
||
|
this.account = account;
|
||
|
this.email = email;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 获取
|
||
|
* @return username
|
||
|
*/
|
||
|
public String getUsername() {
|
||
|
return username;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 设置
|
||
|
* @param username
|
||
|
*/
|
||
|
public void setUsername(String username) {
|
||
|
this.username = username;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 获取
|
||
|
* @return password
|
||
|
*/
|
||
|
public String getPassword() {
|
||
|
return password;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 设置
|
||
|
* @param password
|
||
|
*/
|
||
|
public void setPassword(String password) {
|
||
|
this.password = password;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 获取
|
||
|
* @return account
|
||
|
*/
|
||
|
public String getAccount() {
|
||
|
return account;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 设置
|
||
|
* @param account
|
||
|
*/
|
||
|
public void setAccount(String account) {
|
||
|
this.account = account;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 获取
|
||
|
* @return email
|
||
|
*/
|
||
|
public String getEmail() {
|
||
|
return email;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 设置
|
||
|
* @param email
|
||
|
*/
|
||
|
public void setEmail(String email) {
|
||
|
this.email = email;
|
||
|
}
|
||
|
|
||
|
public String toString() {
|
||
|
return "User{username = " + username + ", password = " + password + ", account = " + account + ", email = " + email + "}";
|
||
|
}
|
||
|
}
|