-
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.
* #131 - feat: 홈화면에서 추천하는 책, 게시글, 한줄요약 개수 설정 * #131 - feat: 홈 화면 상단 책 랜덤 추천 API 구현 * #131 - feat: 홈 화면 상단 책 랜덤 추천 API 테스트 구현 * #131 - feat: 홈 화면 중단 좋아요 순서 게시글 API 구현 * #131 - test: 홈 화면 중단 좋아요 순서 게시글 API 테스트 구현 * #131 - fix: 삭제된 LikeBook 메소드 추가 * #131 - feat: 홈 화면 중단 좋아요 순서 한줄요약 API 구현 * #131 - test: 홈 화면 중단 좋아요 순서 한줄요약 API 테스트 구현 * #131 - feat: 홈 화면 중단 최신 순서 게시글 API 구현 * #131 - test: 홈 화면 중단 최신 순서 게시글 API 테스트 구현 * #131 - feat: 홈 화면 중단 최신 순서 한줄요약 API 구현 * #131 - test: 홈 화면 중단 최신 순서 한줄요약 API 테스트 구현 * #131 - feat: 책 추천 시 응답이 리스트인 것을 JSON 형식으로 수정 * #131 - refactor: Member의 profileStatus 변수명을 status로 변경 다른 Entity 와 통일 * #131 - feat: 홈 화면 하단 최신 순서 멤버 API 구현 * #131 - test: 홈 화면 하단 최신 순서 멤버 API 테스트 구현 * #131 - test: 홈화면에 반환하는 개수도 테스트하도록 보강 * #131 - fix: rebase 시 나타난 import 문제 수정 * #131 - refactor: sql 쿼리 소문자로 통일 * #131 - feat: 게시글, 한줄요약 추천 API 를 하나도 통일하고 타입을 파라미터로 받도록 개선 * #131 - feat: 파라미터로 변경으로 인한 테스트 변경
- Loading branch information
Showing
27 changed files
with
361 additions
and
49 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: 8 additions & 0 deletions
8
src/main/java/cotato/bookitlist/book/dto/response/BookRecommendListResponse.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,8 @@ | ||
package cotato.bookitlist.book.dto.response; | ||
|
||
import java.util.List; | ||
|
||
public record BookRecommendListResponse( | ||
List<BookRecommendResponse> bookList | ||
) { | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/cotato/bookitlist/book/dto/response/BookRecommendResponse.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,21 @@ | ||
package cotato.bookitlist.book.dto.response; | ||
|
||
import cotato.bookitlist.book.dto.BookDto; | ||
|
||
public record BookRecommendResponse( | ||
String title, | ||
String author, | ||
String description, | ||
String isbn13, | ||
String cover | ||
) { | ||
public static BookRecommendResponse from(BookDto dto) { | ||
return new BookRecommendResponse( | ||
dto.title(), | ||
dto.author(), | ||
dto.description(), | ||
dto.isbn13(), | ||
dto.cover() | ||
); | ||
} | ||
} |
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
5 changes: 5 additions & 0 deletions
5
src/main/java/cotato/bookitlist/common/domain/RecommendType.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,5 @@ | ||
package cotato.bookitlist.common.domain; | ||
|
||
public enum RecommendType { | ||
LIKE, NEW | ||
} |
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
16 changes: 16 additions & 0 deletions
16
src/main/java/cotato/bookitlist/member/dto/response/MemberRecommendListResponse.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,16 @@ | ||
package cotato.bookitlist.member.dto.response; | ||
|
||
import cotato.bookitlist.member.domain.Member; | ||
import org.springframework.data.domain.Page; | ||
|
||
import java.util.List; | ||
|
||
public record MemberRecommendListResponse ( | ||
List<MemberRecommendResponse> memberList | ||
) { | ||
public static MemberRecommendListResponse of(Page<Member> page) { | ||
return new MemberRecommendListResponse( | ||
page.stream().map(MemberRecommendResponse::of).toList() | ||
); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/cotato/bookitlist/member/dto/response/MemberRecommendResponse.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 cotato.bookitlist.member.dto.response; | ||
|
||
import cotato.bookitlist.member.domain.Member; | ||
|
||
public record MemberRecommendResponse( | ||
Long memberId, | ||
String profileLink | ||
) { | ||
public static MemberRecommendResponse of(Member member) { | ||
return new MemberRecommendResponse(member.getId(), member.getProfileLink()); | ||
} | ||
} |
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
Oops, something went wrong.