클라이언트 메시지 다국어 처리
공개 API 변경 없음.
This commit is contained in:
@@ -12,7 +12,7 @@ class MenuService(
|
||||
) {
|
||||
fun getMenus(user: User): List<GetMenuResponse> {
|
||||
val member = memberRepository.findByEmail(user.username)
|
||||
?: throw SodaException("로그인 정보를 확인해주세요.")
|
||||
?: throw SodaException(messageKey = "common.error.bad_credentials")
|
||||
return repository.getMenu(member.role)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user