[4주차] 이교형/[feat] 게시글/댓글/신고 도메인 기반 추가 API 작성#168
Open
LGH0507 wants to merge 13 commits intoLeets-Official:mainfrom
Hidden character warning
The head ref may contain hidden characters: "\uc774\uad50\ud615/4\uc8fc\ucc28"
Open
[4주차] 이교형/[feat] 게시글/댓글/신고 도메인 기반 추가 API 작성#168LGH0507 wants to merge 13 commits intoLeets-Official:mainfrom
LGH0507 wants to merge 13 commits intoLeets-Official:mainfrom
Conversation
yeonjuncho
approved these changes
Apr 30, 2026
yeonjuncho
left a comment
There was a problem hiding this comment.
👍 코드를 깔끔하게 작성해주신 것 같습니다 고생하셨습니다!
Files changed를 보니 파일이 다 추가만 되어 있는데 project 폴더를 다시 만들어서 하신걸까요?
Author
감사합니다😄 이전 브랜치에서 완료한 작업을 제 main브랜치에 merge하고 제 main브랜치에서 4주차 브랜치를 파서 했는데 그 과정에서 파일들이 추가 된 것 같습니다. 혹시 연준님께서는 어떻게 하셨는지 물어봐도 될까요? |
Comment on lines
+43
to
+46
| REPORT_NOT_FOUND(HttpStatus.NOT_FOUND, "REPORT_4040", "신고를 찾을 수 없습니다."), | ||
| REPORT_ALREADY_EXISTS(HttpStatus.CONFLICT, "REPORT_4090", "이미 신고한 대상입니다."), | ||
| REPORT_ALREADY_RESOLVED(HttpStatus.CONFLICT, "REPORT_4091", "이미 처리된 신고입니다."), | ||
| REPORT_CANNOT_SELF(HttpStatus.BAD_REQUEST, "REPORT_4001", "자신의 게시물/댓글은 신고할 수 없습니다."); |
There was a problem hiding this comment.
본인이 작성한 게시글/댓글은 신고 못하도록 제한해둔 점에서 디테일한 부분까지 신경 많이 쓰신 것 같습니다. 고생 많으셨습니다!
ruchan04
reviewed
Apr 30, 2026
| Comment comment = findCommentOrThrow(commentId); | ||
| validateCommentBelongsToPost(comment, postId); | ||
|
|
||
| comment.updateContent(request.getContent(), currentUserId); |
There was a problem hiding this comment.
💬 수정 권한 검증(currentUserId)을 엔티티 내부에서 수행하도록 구현하신 것 같습니다. 서비스 레이어가 얇아지고 도메인 로직이 집중되어 응집도가 높아지는 좋은 방식으로 구현하신것 같습니다
ruchan04
approved these changes
Apr 30, 2026
ruchan04
approved these changes
Apr 30, 2026
Member
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. 핵심 변경 사항
기존 엔티티 수정
3. 실행 및 검증 결과
댓글 숨김(HIDDEN)
댓글 신고 ( 본인 댓글 본인이 신고) - 실패
4. 완료 사항
5. 추가 사항
closed #131제출 체크리스트
{이름}/main브랜치다{이름}/{숫자}주차브랜치다Reviewer 참고