Files
struts2-demo/web/WEB-INF/classes/com/demo/model/User.java

55 lines
1013 B
Java
Raw Normal View History

2026-03-18 15:18:30 +08:00
package com.demo.model;
public class User {
private Long id;
private String username;
private String email;
private String phone;
2026-03-18 18:12:20 +08:00
public User() {
}
2026-03-18 15:18:30 +08:00
public User(Long id, String username, String email) {
2026-03-18 18:12:20 +08:00
this(id, username, email, null);
}
public User(Long id, String username, String email, String phone) {
this.id = id;
this.username = username;
this.email = email;
this.phone = phone;
}
public Long getId() {
return id;
}
public void setId(Long id) {
2026-03-18 15:18:30 +08:00
this.id = id;
2026-03-18 18:12:20 +08:00
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
2026-03-18 15:18:30 +08:00
this.username = username;
2026-03-18 18:12:20 +08:00
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
2026-03-18 15:18:30 +08:00
this.email = email;
}
2026-03-18 18:12:20 +08:00
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
}