알림/오디션 메시지 다국어 분리
알림/오디션 오류 응답 메시지를 키 기반 다국어로 분리
This commit is contained in:
@@ -17,7 +17,7 @@ class AlarmController(private val service: AlarmService) {
|
||||
fun getSlotQuantityAndPrice(
|
||||
@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.getSlotQuantityAndPrice(memberId = member.id!!)
|
||||
@@ -29,7 +29,7 @@ class AlarmController(private val service: AlarmService) {
|
||||
@PathVariable("container") container: String,
|
||||
@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.buyExtraSlot(
|
||||
|
||||
@@ -53,7 +53,7 @@ class AlarmService(
|
||||
}
|
||||
|
||||
else -> {
|
||||
throw SodaException("이미 구매하셨습니다")
|
||||
throw SodaException(messageKey = "alarm.error.already_purchased")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user