新增用户信息数据类,用于渲染个人介绍首页
This commit is contained in:
parent
bf181701ee
commit
0f8d214dba
80
src/main/java/com/web/web_assignment/UserInfo.java
Normal file
80
src/main/java/com/web/web_assignment/UserInfo.java
Normal file
@ -0,0 +1,80 @@
|
||||
package com.web.web_assignment;
|
||||
|
||||
public class UserInfo {
|
||||
private String name;
|
||||
private String introduction;
|
||||
private String interests;
|
||||
private String experiences;
|
||||
private String skills;
|
||||
private String careerGoals;
|
||||
|
||||
public UserInfo(String name, String introduction, String interests, String experiences, String skills, String careerGoals) {
|
||||
this.name = name;
|
||||
this.introduction = introduction;
|
||||
this.interests = interests;
|
||||
this.experiences = experiences;
|
||||
this.skills = skills;
|
||||
this.careerGoals = careerGoals;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getIntroduction() {
|
||||
return introduction;
|
||||
}
|
||||
|
||||
public void setIntroduction(String introduction) {
|
||||
this.introduction = introduction;
|
||||
}
|
||||
|
||||
public String getInterests() {
|
||||
return interests;
|
||||
}
|
||||
|
||||
public void setInterests(String interests) {
|
||||
this.interests = interests;
|
||||
}
|
||||
|
||||
public String getExperiences() {
|
||||
return experiences;
|
||||
}
|
||||
|
||||
public void setExperiences(String experiences) {
|
||||
this.experiences = experiences;
|
||||
}
|
||||
|
||||
public String getSkills() {
|
||||
return skills;
|
||||
}
|
||||
|
||||
public void setSkills(String skills) {
|
||||
this.skills = skills;
|
||||
}
|
||||
|
||||
public String getCareerGoals() {
|
||||
return careerGoals;
|
||||
}
|
||||
|
||||
public void setCareerGoals(String careerGoals) {
|
||||
this.careerGoals = careerGoals;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "UserInfo{" +
|
||||
"username='" + name + '\'' +
|
||||
", introduction='" + introduction + '\'' +
|
||||
", interests='" + interests + '\'' +
|
||||
", experiences='" + experiences + '\'' +
|
||||
", skills='" + skills + '\'' +
|
||||
", careerGoals='" + careerGoals + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user