-
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.
[BE-REFACTOR] 바이옴 타입 전달 시 이름과 함께 전달 (#270)
* refactor: 바이옴 타입 반환 시 이름도 같이 반환하도록 수정 * chore: 서브모듈 커밋 시점 변경 * refactor: 타입만 로고 확장자 제거 * style: 개행 추가 * style: 개행 추가
- Loading branch information
Showing
9 changed files
with
59 additions
and
31 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
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
4 changes: 0 additions & 4 deletions
4
backend/pokerogue/src/main/java/com/pokerogue/helper/biome/dto/BiomePokemonTypeResponse.java
This file was deleted.
Oops, something went wrong.
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
4 changes: 4 additions & 0 deletions
4
backend/pokerogue/src/main/java/com/pokerogue/helper/biome/dto/BiomeTypeResponse.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,4 @@ | ||
package com.pokerogue.helper.biome.dto; | ||
|
||
public record BiomeTypeResponse(String typeLogo, String typeName) { | ||
} |
26 changes: 23 additions & 3 deletions
26
backend/pokerogue/src/main/java/com/pokerogue/helper/biome/dto/NextBiomeResponse.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,10 +1,30 @@ | ||
package com.pokerogue.helper.biome.dto; | ||
|
||
import com.pokerogue.helper.biome.data.Biome; | ||
import java.util.List; | ||
|
||
public record NextBiomeResponse(String id, String name, String image, String percent) { | ||
public record NextBiomeResponse( | ||
String id, | ||
String name, | ||
String image, | ||
String percent, | ||
List<BiomeTypeResponse> pokemonTypeResponses, | ||
List<BiomeTypeResponse> trainerTypeResponses | ||
) { | ||
|
||
public static NextBiomeResponse of(Biome biome, String percent) { | ||
return new NextBiomeResponse(biome.getId(), biome.getName(), biome.getImage(), percent); | ||
public static NextBiomeResponse of( | ||
Biome biome, | ||
String percent, | ||
List<BiomeTypeResponse> pokemonTypeResponses, | ||
List<BiomeTypeResponse> trainerTypeResponses | ||
) { | ||
return new NextBiomeResponse( | ||
biome.getId(), | ||
biome.getName(), | ||
biome.getImage(), | ||
percent, | ||
pokemonTypeResponses, | ||
trainerTypeResponses | ||
); | ||
} | ||
} |
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
Submodule resources
updated
from 1a2997 to ccb594