차단 유저 아이디 리스트 가져오기 API 추가

This commit is contained in:
2024-09-04 21:37:40 +09:00
parent 2bd1c99409
commit dd229f15ac
2 changed files with 14 additions and 0 deletions

View File

@@ -154,6 +154,16 @@ class MemberController(private val service: MemberService) {
ApiResponse.ok(service.creatorUnFollow(creatorId = request.creatorId, memberId = member.id!!))
}
@GetMapping("/block/id")
fun getBlockedMemberIdList(
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?,
pageable: Pageable
) = run {
if (member == null) throw SodaException("로그인 정보를 확인해주세요.")
ApiResponse.ok(service.getBlockedMemberIdList(member.id!!))
}
@GetMapping("/block")
fun getBlockedMemberList(
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?,