-
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.
Feat: 책 검색시 DB 검색을 제외하고 알라딘 api 활용으로 대체하기 (#77)
* #60 - feat: 책 검색 응답 시 BookApiDto 를 BookApiResponse 로 변환 후 응답 * #60 - feat: 기존 외부 검색 API를 검색 API로 전환하고 기존 검색 API는 Deprecated 처리
- Loading branch information
Showing
6 changed files
with
32 additions
and
38 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
8 changes: 3 additions & 5 deletions
8
src/main/java/cotato/bookitlist/book/dto/response/BookApiListResponse.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,17 +1,15 @@ | ||
package cotato.bookitlist.book.dto.response; | ||
|
||
import cotato.bookitlist.book.dto.BookApiDto; | ||
|
||
import java.util.List; | ||
|
||
public record BookApiListResponse( | ||
int totalResults, | ||
int startIndex, | ||
int itemsPerPage, | ||
List<BookApiDto> bookApiList | ||
List<BookApiResponse> bookApiList | ||
) { | ||
|
||
public static BookApiListResponse of(int totalResults, int startIndex, int itemsPerPage, List<BookApiDto> bookApiDto) { | ||
return new BookApiListResponse(totalResults, startIndex, itemsPerPage, bookApiDto); | ||
public static BookApiListResponse of(int totalResults, int startIndex, int itemsPerPage, List<BookApiResponse> bookApiList) { | ||
return new BookApiListResponse(totalResults, startIndex, itemsPerPage, bookApiList); | ||
} | ||
} |
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