클라이언트 메시지 다국어 처리
공개 API 변경 없음.
This commit is contained in:
@@ -17,7 +17,7 @@ class PointController(private val service: PointService) {
|
||||
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?
|
||||
) = run {
|
||||
if (member == null) {
|
||||
throw SodaException("로그인 정보를 확인해주세요.")
|
||||
throw SodaException(messageKey = "common.error.bad_credentials")
|
||||
}
|
||||
|
||||
ApiResponse.ok(service.getPointStatus(member))
|
||||
@@ -29,7 +29,7 @@ class PointController(private val service: PointService) {
|
||||
@RequestParam("timezone") timezone: String
|
||||
) = run {
|
||||
if (member == null) {
|
||||
throw SodaException("로그인 정보를 확인해주세요.")
|
||||
throw SodaException(messageKey = "common.error.bad_credentials")
|
||||
}
|
||||
|
||||
ApiResponse.ok(service.getPointUseStatus(member, timezone))
|
||||
@@ -41,7 +41,7 @@ class PointController(private val service: PointService) {
|
||||
@RequestParam("timezone") timezone: String
|
||||
) = run {
|
||||
if (member == null) {
|
||||
throw SodaException("로그인 정보를 확인해주세요.")
|
||||
throw SodaException(messageKey = "common.error.bad_credentials")
|
||||
}
|
||||
|
||||
ApiResponse.ok(service.getPointRewardStatus(member, timezone))
|
||||
|
||||
Reference in New Issue
Block a user