Skip to content

Commit

Permalink
[BE-REFACTOR] 포켓몬 타입 응답 파라미터명 변경 (#276)
Browse files Browse the repository at this point in the history
* reafactor: 단일 포켓몬 조회 api명세서대로 주소 변경

* test: 포켓몬 정보가 지정된 개수만큼 저장된다

* test: 랜덤 포켓몬 이름 검

* refactor: 파일 위치 이동 및 repsonse 구현

* refactor: 더미 데이터로 단일 조회 리펙터링

* refactor: 응답 관련 dto 생

* refactor: 서비스단에서 응답 객체 생성

* refactor: 포켓몬 데이터 저장 객체 생성

* feat: 바이옴, 타입, 특성 이넘 구

* feat: 데이터 추가

* feat: 데이터 추가

* feat: 간이 데이터 추가

* refactor: 전체 포켓몬 덱스 번호 기준으로 반환

* feat: 폼 이름 추가

* chore: 커밋 시점 변경

* chore: 커밋 시점 변경

* chore: 커밋 시점 변경

* refactor: s3 이미지 URL 적용

* chore: 커밋 시점 변경

* feat: 진화체 응답 구현

* refactor: repository optinal 적용

* refactor: 포켓몬 데이터 저장할 때 스탯 파싱으로 변경

* refactor: 진화 응답에 depth추가

* chore:커밋 시점 변경

* chore: 서브모듈 커밋 시점 변경

* test

* refactor: 불필요한 데이터베이스 관련 파일 제거 및 포켓몬 typeResponse 파라미터명 변경

* refactor: 파라미터명 변경

* chore: ds_store 삭제

* fix: 변수명 수정
  • Loading branch information
dwax1324 authored Aug 21, 2024
1 parent 9e9a607 commit afbd543
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.pokerogue.helper.pokemon2.data.Pokemon;
import com.pokerogue.helper.type.domain.PokemonType;

public record PokemonTypeResponse(String pokemonTypeName, String pokemonTypeLogo) {
public record PokemonTypeResponse(String typeName, String typeLogo) {

public static PokemonTypeResponse from(PokemonType pokemonType) {
return new PokemonTypeResponse(pokemonType.getName(), pokemonType.getImage());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private List<List<String>> pokemonTypeNamesGroupByPokemon(
return pokemonAbilityWithPokemons.pokemons().stream()
.map(SameAbilityPokemonResponse::pokemonTypeResponses)
.map(pokemonTypeResponses -> pokemonTypeResponses.stream()
.map(PokemonTypeResponse::pokemonTypeName)
.map(PokemonTypeResponse::typeName)
.toList())
.toList();
}
Expand Down

0 comments on commit afbd543

Please sign in to comment.