From a60821429df9457a18fee18731a30749aeae6f8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=B3=E7=9A=AE=E5=B9=BC=E9=B8=9F?= <2960474346@qq.com> Date: Fri, 12 Apr 2024 10:10:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E6=95=B0=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../catchTheLetters/entity/ScoreInfo.java | 46 ++----------------- 1 file changed, 4 insertions(+), 42 deletions(-) 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; } - }