From 14705f0896c8ec6c08b2f1518bce28eb1ed9a351 Mon Sep 17 00:00:00 2001 From: HyowonSin Date: Wed, 1 Nov 2023 11:41:05 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EA=B0=90=EC=98=A5=20=ED=83=88=EC=B6=9C?= =?UTF-8?q?=20=ED=94=8C=EB=A0=88=EC=9D=B4=EC=96=B4=20=EC=95=84=EC=9D=B4?= =?UTF-8?q?=EB=94=94=20=EB=B0=98=ED=99=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gaemimarble/game/dto/response/GamePrisonDiceResponse.java | 4 +++- .../java/codesquad/gaemimarble/game/service/GameService.java | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/be/src/main/java/codesquad/gaemimarble/game/dto/response/GamePrisonDiceResponse.java b/be/src/main/java/codesquad/gaemimarble/game/dto/response/GamePrisonDiceResponse.java index cfc3449..3bb2b23 100644 --- a/be/src/main/java/codesquad/gaemimarble/game/dto/response/GamePrisonDiceResponse.java +++ b/be/src/main/java/codesquad/gaemimarble/game/dto/response/GamePrisonDiceResponse.java @@ -5,12 +5,14 @@ @Getter public class GamePrisonDiceResponse { + private String playerId; private Integer dice1; private Integer dice2; private Boolean hasEscaped; @Builder - private GamePrisonDiceResponse(Integer dice1, Integer dice2, Boolean hasEscaped) { + private GamePrisonDiceResponse(String playerId, Integer dice1, Integer dice2, Boolean hasEscaped) { + this.playerId = playerId; this.dice1 = dice1; this.dice2 = dice2; this.hasEscaped = hasEscaped; diff --git a/be/src/main/java/codesquad/gaemimarble/game/service/GameService.java b/be/src/main/java/codesquad/gaemimarble/game/service/GameService.java index 28550dd..9a667bf 100644 --- a/be/src/main/java/codesquad/gaemimarble/game/service/GameService.java +++ b/be/src/main/java/codesquad/gaemimarble/game/service/GameService.java @@ -370,6 +370,7 @@ public GamePrisonDiceResponse prisonDice(GamePrisonDiceRequest gamePrisonDiceReq } return GamePrisonDiceResponse.builder() + .playerId(player.getPlayerId()) .dice1(dice1) .dice2(dice2) .hasEscaped(player.getPrisonCount() == 0)