diff --git a/src/main/java/com/example/catchTheLetters/entity/ScoreInfo.java b/src/main/java/com/example/catchTheLetters/entity/ScoreInfo.java index 60738a3..37b7466 100644 --- a/src/main/java/com/example/catchTheLetters/entity/ScoreInfo.java +++ b/src/main/java/com/example/catchTheLetters/entity/ScoreInfo.java @@ -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){ - this.userId=userId; - this.levelId=levelId; - this.username=username; - this.score=score; - this.time=time; + public ScoreInfo() { } - public Long getUserId() { - return userId; - } - - public void setUserId(Long userId) { + public ScoreInfo(String userId, String levelId, String username, Integer score, Long time) { 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; } - }