-
Notifications
You must be signed in to change notification settings - Fork 1
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
…-fix Feature/#79 rush event fix
- Loading branch information
Showing
14 changed files
with
259 additions
and
72 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
12 changes: 12 additions & 0 deletions
12
...ain/java/JGS/CasperEvent/domain/event/dto/ResponseDto/MainRushEventOptionResponseDto.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,12 @@ | ||
package JGS.CasperEvent.domain.event.dto.ResponseDto; | ||
|
||
public record MainRushEventOptionResponseDto(String mainText, | ||
String subText) { | ||
|
||
public static MainRushEventOptionResponseDto of(RushEventOptionResponseDto rushEventOptionResponseDto) { | ||
return new MainRushEventOptionResponseDto( | ||
rushEventOptionResponseDto.mainText(), | ||
rushEventOptionResponseDto.subText() | ||
); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...in/java/JGS/CasperEvent/domain/event/dto/ResponseDto/MainRushEventOptionsResponseDto.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,11 @@ | ||
package JGS.CasperEvent.domain.event.dto.ResponseDto; | ||
|
||
|
||
public record MainRushEventOptionsResponseDto(MainRushEventOptionResponseDto leftOption, | ||
MainRushEventOptionResponseDto rightOption) { | ||
|
||
public MainRushEventOptionsResponseDto(MainRushEventOptionResponseDto leftOption, MainRushEventOptionResponseDto rightOption) { | ||
this.leftOption = leftOption; | ||
this.rightOption = rightOption; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...n/java/JGS/CasperEvent/domain/event/dto/ResponseDto/ResultRushEventOptionResponseDto.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,11 @@ | ||
package JGS.CasperEvent.domain.event.dto.ResponseDto; | ||
|
||
public record ResultRushEventOptionResponseDto(String mainText, String resultMainText, String resultSubText) { | ||
public static ResultRushEventOptionResponseDto of(RushEventOptionResponseDto rushEventOptionResponseDto) { | ||
return new ResultRushEventOptionResponseDto( | ||
rushEventOptionResponseDto.mainText(), | ||
rushEventOptionResponseDto.resultMainText(), | ||
rushEventOptionResponseDto.resultSubText() | ||
); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...rc/main/java/JGS/CasperEvent/domain/event/dto/ResponseDto/RushEventOptionResponseDto.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,17 @@ | ||
package JGS.CasperEvent.domain.event.dto.ResponseDto; | ||
|
||
import JGS.CasperEvent.domain.event.entity.event.RushOption; | ||
import JGS.CasperEvent.global.enums.Position; | ||
|
||
public record RushEventOptionResponseDto(String mainText, String subText, String resultMainText, String resultSubText, String imageUrl, Position position) { | ||
public static RushEventOptionResponseDto of(RushOption rushOption) { | ||
return new RushEventOptionResponseDto( | ||
rushOption.getMainText(), | ||
rushOption.getSubText(), | ||
rushOption.getResultMainText(), | ||
rushOption.getResultSubText(), | ||
rushOption.getImageUrl(), | ||
rushOption.getPosition() | ||
); | ||
} | ||
} |
5 changes: 1 addition & 4 deletions
5
.../src/main/java/JGS/CasperEvent/domain/event/dto/ResponseDto/RushEventRateResponseDto.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,7 +1,4 @@ | ||
package JGS.CasperEvent.domain.event.dto.ResponseDto; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public record RushEventRateResponseDto(long leftOption, long rightOption) { | ||
public record RushEventRateResponseDto(int optionId, long leftOption, long rightOption) { | ||
} |
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
Oops, something went wrong.