分数类

This commit is contained in:
石皮幼鸟 2024-04-12 10:10:18 +08:00
parent e89d6d089f
commit a60821429d
1 changed files with 4 additions and 42 deletions

View File

@ -14,11 +14,11 @@ public class ScoreInfo implements Serializable {
/**
* 用户ID
*/
private Long userId;
private String userId;
/**
* 关卡ID
*/
private Long levelId;
private String levelId;
/**
* 用户名
*/
@ -31,53 +31,15 @@ public class ScoreInfo implements Serializable {
* 时间UNIX时间戳
*/
private Long time;
public ScoreInfo(Long userId,Long levelId,String username,Integer score, Long time){
public ScoreInfo() {
}
public ScoreInfo(String userId, String levelId, String username, Integer score, Long time) {
this.userId = userId;
this.levelId = levelId;
this.username = username;
this.score = score;
this.time = time;
}
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public Long getLevelId() {
return levelId;
}
public void setLevelId(Long levelId) {
this.levelId = levelId;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public Integer getScore() {
return score;
}
public void setScore(Integer score) {
this.score = score;
}
public Long getTime() {
return time;
}
public void setTime(Long time) {
this.time = time;
}
}