-
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.
Browse files
Browse the repository at this point in the history
[feat] ์ ๋ฌผ ํ ๋๋จผํธ ์ ์ ์ ๋ ฅ API & ํ ๋๋จผํธ ์ ๋ณด ์กฐํ API ๊ตฌํ
- Loading branch information
Showing
10 changed files
with
192 additions
and
1 deletion.
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
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
18 changes: 18 additions & 0 deletions
18
src/main/java/org/sopt/sweet/domain/gift/dto/request/TournamentScoreRequestDto.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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.sopt.sweet.domain.gift.dto.request; | ||
|
||
import lombok.Builder; | ||
import org.sopt.sweet.domain.gift.dto.response.TournamentListsResponseDto; | ||
|
||
@Builder | ||
public record TournamentScoreRequestDto( | ||
Long firstPlaceGiftId, | ||
Long secondPlaceGiftId | ||
) { | ||
public static TournamentScoreRequestDto of(Long firstPlaceGiftId, Long secondPlaceGiftId) { | ||
return TournamentScoreRequestDto.builder() | ||
.firstPlaceGiftId(firstPlaceGiftId) | ||
.secondPlaceGiftId(secondPlaceGiftId) | ||
.build(); | ||
} | ||
|
||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/org/sopt/sweet/domain/gift/dto/response/TournamentInfoDto.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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.sopt.sweet.domain.gift.dto.response; | ||
|
||
import lombok.Builder; | ||
import org.sopt.sweet.domain.room.constant.TournamentDuration; | ||
|
||
import java.time.LocalDateTime; | ||
@Builder | ||
public record TournamentInfoDto( | ||
LocalDateTime tournamentStartDate, | ||
TournamentDuration tournamentDuration, | ||
|
||
int TotalParticipantsCount, | ||
int ParticipantsCount | ||
|
||
) { | ||
public static TournamentInfoDto of(LocalDateTime tournamentStartDate, | ||
TournamentDuration tournamentDuration, | ||
int TotalParticipantsCount, | ||
int ParticipantsCount) { | ||
return TournamentInfoDto.builder() | ||
.tournamentStartDate(tournamentStartDate) | ||
.tournamentDuration(tournamentDuration) | ||
.TotalParticipantsCount(TotalParticipantsCount) | ||
.ParticipantsCount(ParticipantsCount) | ||
.build(); | ||
} | ||
|
||
} |
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
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
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
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
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
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