차단한 유저리스트 조회 API 추가

This commit is contained in:
2024-09-03 17:52:34 +09:00
parent 93410af224
commit b0c7819b5a
3 changed files with 16 additions and 3 deletions

View File

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