다국어 메시지 분리 적용
This commit is contained in:
@@ -30,7 +30,7 @@ class LiveRecommendController(private val service: LiveRecommendService) {
|
||||
fun getFollowingChannelList(
|
||||
@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.getFollowingChannelList(member))
|
||||
}
|
||||
@@ -40,7 +40,7 @@ class LiveRecommendController(private val service: LiveRecommendService) {
|
||||
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?,
|
||||
pageable: Pageable
|
||||
) = run {
|
||||
if (member == null) throw SodaException("로그인 정보를 확인해주세요.")
|
||||
if (member == null) throw SodaException(messageKey = "common.error.bad_credentials")
|
||||
|
||||
ApiResponse.ok(service.getFollowingAllChannelList(member, pageable))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user