Skip to content

Commit

Permalink
feat: JD id & 상태 별 북마크 조회 기능 구현(#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
whereami2048 committed May 21, 2024
1 parent 7f033e4 commit e211d19
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ interface BookmarkRepository {
fun findByIds(jobDescriptionId : UUID, experienceId : UUID) : Bookmark?

fun save(bookmark: Bookmark)
fun findByStatusOnAndJobDescriptionId(jobDescriptionId: UUID, status: BookmarkStatus): List<Bookmark>
fun findByStatusAndJobDescriptionId(jobDescriptionId: UUID, status: BookmarkStatus): List<Bookmark>
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class BookmarkReader(
return bookmarkRepository.findByIds(jobDescriptionId, experienceId)
}

fun readByStatusOnAndJobDescriptionId(jobDescriptionId: UUID): List<Bookmark> {
return bookmarkRepository.findByStatusOnAndJobDescriptionId(jobDescriptionId, BookmarkStatus.ON)
fun readByStatusAndJobDescriptionId(jobDescriptionId: UUID, status: BookmarkStatus): List<Bookmark> {
return bookmarkRepository.findByStatusAndJobDescriptionId(jobDescriptionId, status)
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ public void save(Bookmark bookmark) {
}

@Override
public List<Bookmark> findByStatusOnAndJobDescriptionId(
UUID jobDescriptionId,
BookmarkStatus status) {
public List<Bookmark> findByStatusAndJobDescriptionId(UUID jobDescriptionId, BookmarkStatus status) {
List<BookmarkJpaEntity> bookmarkJpaEntities = bookmarkJpaRepository
.findByBookmarkStatusAndJobDescriptionId(status, jobDescriptionId);

Expand Down

0 comments on commit e211d19

Please sign in to comment.