Skip to content

Commit

Permalink
✨ :: 사용자 검색 API '외출 여부' 조건 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
snowykte0426 committed Feb 2, 2025
1 parent 400d2b6 commit 78c33b1
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ class SearchAccountUseCase(
else -> true // isBlackList 쿼리파라미터가 없을 시 필터링 무조건 통과
}
}
.filter {
when (dto.isOuting){
true -> outingMap.contains(it.idx)
false -> !outingMap.contains(it.idx)
else -> true // isOuting 쿼리파라미터가 없을 시 필터링 무조건 통과
}
}
.map {
AccountDto(
accountIdx = it.idx,
Expand Down

0 comments on commit 78c33b1

Please sign in to comment.