Code Généré (Java POJO) 語法正確
import java.util.List;
public class Profile {
private String fullName;
private String avatarUrl;
private String location;
public Profile() {}
public Profile(String fullName, String avatarUrl, String location) {
this.fullName = fullName;
this.avatarUrl = avatarUrl;
this.location = location;
}
public String getFullName() {
return this.fullName;
}
public void setFullName(String fullName) {
this.fullName = fullName;
}
public String getAvatarUrl() {
return this.avatarUrl;
}
public void setAvatarUrl(String avatarUrl) {
this.avatarUrl = avatarUrl;
}
public String getLocation() {
return this.location;
}
public void setLocation(String location) {
this.location = location;
}
}
public class Root {
private String userId;
private String username;
private String email;
private Boolean isActive;
private Long creditScore;
private Profile profile;
private List<String> roles;
public Root() {}
public Root(String userId, String username, String email, Boolean isActive, Long creditScore, Profile profile, List<String> roles) {
this.userId = userId;
this.username = username;
this.email = email;
this.isActive = isActive;
this.creditScore = creditScore;
this.profile = profile;
this.roles = roles;
}
public String getUserId() {
return this.userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getUsername() {
return this.username;
}
public void setUsername(String username) {
this.username = username;
}
public String getEmail() {
return this.email;
}
public void setEmail(String email) {
this.email = email;
}
public Boolean getIsActive() {
return this.isActive;
}
public void setIsActive(Boolean isActive) {
this.isActive = isActive;
}
public Long getCreditScore() {
return this.creditScore;
}
public void setCreditScore(Long creditScore) {
this.creditScore = creditScore;
}
public Profile getProfile() {
return this.profile;
}
public void setProfile(Profile profile) {
this.profile = profile;
}
public List<String> getRoles() {
return this.roles;
}
public void setRoles(List<String> roles) {
this.roles = roles;
}
}