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)