알림/오디션 메시지 다국어 분리

알림/오디션 오류 응답 메시지를 키 기반 다국어로 분리
This commit is contained in:
2025-12-23 17:45:47 +09:00
parent 7ef654e89d
commit 58f7a8654b
10 changed files with 49 additions and 13 deletions

View File

@@ -32,7 +32,7 @@ class AuditionController(private val service: AuditionService) {
@PathVariable id: Long,
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?
) = run {
if (member == null) throw SodaException("로그인 정보를 확인해주세요.")
if (member == null) throw SodaException(messageKey = "common.error.bad_credentials")
ApiResponse.ok(service.getAuditionDetail(auditionId = id))
}