Skip to content

Commit

Permalink
feat: 북마크 경험 아이디로 조회 기능 정의(#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
whereami2048 committed May 21, 2024
1 parent 7671660 commit e4759a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ import java.util.*

interface BookmarkRepository {

fun findByIds(jobDescriptionId : UUID, experienceId : UUID) : Bookmark?
fun findById(jobDescriptionId : UUID, experienceId : UUID) : Bookmark?

fun save(bookmark: Bookmark)
fun findByStatusAndJobDescriptionId(jobDescriptionId: UUID, status: BookmarkStatus): List<Bookmark>
fun findByExperienceIds(): List<Bookmark>
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ class BookmarkReader(
) {

fun readBookmark(jobDescriptionId: UUID, experienceId: UUID) : Bookmark? {
return bookmarkRepository.findByIds(jobDescriptionId, experienceId)
return bookmarkRepository.findById(jobDescriptionId, experienceId)
}

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

fun readByExperienceIds(experiencesIds: List<UUID>) : List<Bookmark>{
return bookmarkRepository.findByExperienceIds()
}
}

0 comments on commit e4759a6

Please sign in to comment.