-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 7 additions & 1 deletion
8
src/main/java/com/hyunsolution/dangu/game/dto/GetGameListDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
package com.hyunsolution.dangu.game.dto; | ||
|
||
import com.hyunsolution.dangu.user.domain.User; | ||
import java.time.LocalDateTime; | ||
|
||
public record GetGameListDto( | ||
Long gameId, User myself, User opponent, Boolean myWin, Boolean opponentWin) {} | ||
Long gameId, | ||
User myself, | ||
User opponent, | ||
Boolean myWin, | ||
Boolean opponentWin, | ||
LocalDateTime date) {} |
10 changes: 9 additions & 1 deletion
10
src/main/java/com/hyunsolution/dangu/game/dto/response/GetGameListResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
package com.hyunsolution.dangu.game.dto.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonFormat; | ||
import java.time.LocalDateTime; | ||
|
||
public record GetGameListResponse( | ||
Long gameId, String myNickname, String opponentNickname, String winnerNickname) {} | ||
Long gameId, | ||
String myNickname, | ||
String opponentNickname, | ||
String winnerNickname, | ||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss") | ||
LocalDateTime date) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters