캔 결제 메시지 다국어 처리
This commit is contained in:
@@ -27,7 +27,7 @@ class CanController(private val service: CanService) {
|
||||
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?
|
||||
) = run {
|
||||
if (member == null) {
|
||||
throw SodaException("로그인 정보를 확인해주세요.")
|
||||
throw SodaException(messageKey = "common.error.bad_credentials")
|
||||
}
|
||||
|
||||
ApiResponse.ok(service.getCanStatus(member, container))
|
||||
@@ -41,7 +41,7 @@ class CanController(private val service: CanService) {
|
||||
pageable: Pageable
|
||||
) = run {
|
||||
if (member == null) {
|
||||
throw SodaException("로그인 정보를 확인해주세요.")
|
||||
throw SodaException(messageKey = "common.error.bad_credentials")
|
||||
}
|
||||
|
||||
ApiResponse.ok(service.getCanUseStatus(member, pageable, timezone, container))
|
||||
@@ -55,7 +55,7 @@ class CanController(private val service: CanService) {
|
||||
pageable: Pageable
|
||||
) = run {
|
||||
if (member == null) {
|
||||
throw SodaException("로그인 정보를 확인해주세요.")
|
||||
throw SodaException(messageKey = "common.error.bad_credentials")
|
||||
}
|
||||
|
||||
ApiResponse.ok(service.getCanChargeStatus(member, pageable, timezone, container))
|
||||
|
||||
Reference in New Issue
Block a user