Merged
Conversation
Collaborator
|
응답 규약을 BaseCode 중심으로 통일하고, 검증 에러를 i18n 키 기반 구조로 정리해 운영 유연성까지 잘 챙기신거 같아요! 고생 많으셨습니다! |
buddle031
added a commit
that referenced
this pull request
Apr 18, 2026
buddle031
added a commit
that referenced
this pull request
Apr 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨ 작업 내용 한 줄 요약
🛠️ 작업 내용
🧠 기술적 의사결정
이번 PR의 핵심이라고 할 수 있는 것은 메시지를 완성된 문장으로 내려주는 대신, i18n 키를 내려주는 방식으로 통일한 점입니다!
성공 응답 예시
에러 응답 예시
백엔드에서 내려주는 message 키값을 바탕으로 클라이언트에서 각 언어별로 대응하는 예시입니다.
이 방식을 선택한 이유는 아래와 같습니다.
다국어 확장 비용이 줄어듭니다.
백엔드는 validation.not_blank, auth.invalid_refresh_token 같은 의미 키만 내려주고, 실제 한국어/영어/일본어/중국어 는 프론트의 i18n을 채택할 수 있습니다.
운영 대응이 유연해집니다.
문구나 톤 조정이 필요할 때 서버 변경 없이 가능합니다.