From f677fdb16285b91a0bbdeb17568d6b92ebc995ae Mon Sep 17 00:00:00 2001 From: Raymond Yang Date: Sun, 9 Aug 2026 12:46:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A3=9C=E4=B8=8A=E6=89=80=E6=9C=89=E5=BA=8F?= =?UTF-8?q?=E5=88=97=E5=8C=96=E6=AC=84=E4=BD=8Dmapping?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pcrediveclanrecordbackend/model/BattleRecord.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/club/sakunadaisuki/pcrediveclanrecordbackend/model/BattleRecord.kt b/src/main/kotlin/club/sakunadaisuki/pcrediveclanrecordbackend/model/BattleRecord.kt index be54fcc..5995f67 100644 --- a/src/main/kotlin/club/sakunadaisuki/pcrediveclanrecordbackend/model/BattleRecord.kt +++ b/src/main/kotlin/club/sakunadaisuki/pcrediveclanrecordbackend/model/BattleRecord.kt @@ -6,8 +6,8 @@ import java.time.Instant @Serializable data class BattleRecord( - val date: String, // yyyy-MM-dd - var uid: String, + @SerialName("date") val date: String, // yyyy-MM-dd + @SerialName("uid") var uid: String, @SerialName("player_name") val playerName: String, @SerialName("discord_name") val discordName: String, @SerialName("discord_id") val discordID: String, @@ -18,9 +18,9 @@ data class BattleRecord( data class AttackDetail( @SerialName("boss_round") val bossRound: Int, // 周目 @SerialName("boss_index") val bossIndex: Int, // 1~5 號王 - val damage: Long, // 傷害 - @SerialName("is_compensation") val isCompensation: Boolean = false, // true: 補償刀, false: 正刀 - @SerialName("is_dropped") val isDropped: Boolean = false, // true: 掉刀, false: 沒掉刀 + @SerialName("damage") val damage: Long, // 傷害 + @SerialName("is_compensation") val isCompensation: Boolean, // true: 補償刀, false: 正刀 + @SerialName("is_dropped") val isDropped: Boolean, // true: 掉刀, false: 沒掉刀 @SerialName("created_at") val createdAt: Long = Instant.now().toEpochMilli(), @SerialName("updated_at") val updatedAt: Long = Instant.now().toEpochMilli() ) \ No newline at end of file