-
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] cloudfront 주소를 변경한다 (#465)
* refactor: cloudfront url 수정 * refactor: 이미지 url 한 곳에서 관리 --------- Co-authored-by: unifolio0 <[email protected]>
- Loading branch information
1 parent
c591ea5
commit 9124d89
Showing
15 changed files
with
59 additions
and
55 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
backend/pokerogue/src/main/java/com/pokerogue/helper/ability/dto/AbilityTypeResponse.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,11 @@ | ||
package com.pokerogue.helper.ability.dto; | ||
|
||
import com.pokerogue.helper.global.config.ImageUrl; | ||
import com.pokerogue.helper.type.data.Type; | ||
|
||
public record AbilityTypeResponse(String typeLogo, String typeName) { | ||
|
||
public static AbilityTypeResponse from(Type type) { | ||
return new AbilityTypeResponse(type.getImage(), type.getKoName()); | ||
return new AbilityTypeResponse(ImageUrl.getTypeImage(type.getName()), type.getKoName()); | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
backend/pokerogue/src/main/java/com/pokerogue/helper/pokemon/dto/EvolutionResponse.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
2 changes: 1 addition & 1 deletion
2
backend/pokerogue/src/main/java/com/pokerogue/helper/pokemon/dto/PokemonBiomeResponse.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
2 changes: 1 addition & 1 deletion
2
backend/pokerogue/src/main/java/com/pokerogue/helper/pokemon/dto/PokemonDetailResponse.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
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
2 changes: 1 addition & 1 deletion
2
backend/pokerogue/src/main/java/com/pokerogue/helper/pokemon/dto/PokemonResponse.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
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
3 changes: 2 additions & 1 deletion
3
backend/pokerogue/src/main/java/com/pokerogue/helper/type/dto/PokemonTypeResponse.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,11 @@ | ||
package com.pokerogue.helper.type.dto; | ||
|
||
import com.pokerogue.helper.global.config.ImageUrl; | ||
import com.pokerogue.helper.type.data.Type; | ||
|
||
public record PokemonTypeResponse(String typeName, String typeLogo) { | ||
|
||
public static PokemonTypeResponse from(Type type) { | ||
return new PokemonTypeResponse(type.getKoName(), type.getImage()); | ||
return new PokemonTypeResponse(type.getKoName(), ImageUrl.getTypeImage(type.getName())); | ||
} | ||
} |
Submodule resources
updated
from 00c8a1 to 2672b5