[3주차] 김지훈/[feat] 게시글 도메인 API 구현#104
Open
jihoonkim501 wants to merge 15 commits intoLeets-Official:김지훈/mainfrom
Hidden character warning
The head ref may contain hidden characters: "\uae40\uc9c0\ud6c8/3\uc8fc\ucc28"
Open
[3주차] 김지훈/[feat] 게시글 도메인 API 구현#104jihoonkim501 wants to merge 15 commits intoLeets-Official:김지훈/mainfrom
jihoonkim501 wants to merge 15 commits intoLeets-Official:김지훈/mainfrom
Conversation
4 tasks
gusanans218
approved these changes
Apr 8, 2026
gusanans218
left a comment
There was a problem hiding this comment.
전체적으로 Command/Query 서비스 분리, Validator 도입 등 역할을 명확하게 나눈 구조가 인상적이었습니다!!
DTO 분리와 응답 구조, 상태 코드 관리까지 일관성 있게 설계되어 있어서 코드 흐름이 잘 읽히네요 👍👍
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.
1. 과제 요구사항 중 구현한 내용
2. 핵심 변경 사항
게시글 관련 api 5개를 구현하였습니다.
서비스단에서 단일책임원칙을 지키기 위해 PostValidator로 분기하여 책임을 줄였고, 블로그 성격을 띄는 과제라 페이징은 Cursor가 아닌 offset 페이지네이션을 구현하였습니다. 추가적으로 page값을 0으로 설정하는것을 방지하기 위하여 validation 과 매직넘버를 추가하여 추후 프론트와 협업시에 page 값 불일치가 일어나지않도록 구성하였습니다. N+1 문제를 방지하기 위해 EntityGraph를 추가하였습니다.
3. 실행 및 검증 결과
GET /health응답: OPOST /string/repeat요청/응답: O5. 추가 사항
제출 체크리스트
{이름}/main브랜치다{이름}/{숫자}주차브랜치다Reviewer 참고
지금은 인증/인가 설정을 해두지않아서 userId 값을 직접 받아오는데 추후에 유저인증정보값으로 수정할 예정입니다. 마지막으로 S3설정을 해두지않아서 추후에 추가할 예정입니다.