[4주차] 최유찬 /[feat] 추가 API 구현#159
Open
ruchan04 wants to merge 1 commit intoLeets-Official:최유찬/mainfrom
Hidden character warning
The head ref may contain hidden characters: "\ucd5c\uc720\ucc2c/4\uc8fc\ucc28"
Open
Conversation
yeonjuncho
approved these changes
Apr 30, 2026
yeonjuncho
left a comment
There was a problem hiding this comment.
👍 고생하셨습니다!
user의 column에서 length를 전반적으로 사이즈를 줄이셨는데 이유가 무엇일까요?
LGH0507
approved these changes
Apr 30, 2026
| private Long id; | ||
|
|
||
| private Long reporterId; // 신고자 ID | ||
| private Long targetId; // 게시물 또는 댓글 ID |
There was a problem hiding this comment.
나중에 게시글(targetId = 1)이나 댓글(targetId=1)로 신고가 들어왔을 경우에 중복되는 문제가 생길 수도 있을 것 같습니다..! 따로 targetType을 지정해서 Post에 대한 신고인지, Comment에 대한 신고인지 구분해 놓으면 위 문제를 방지할 수 있을 것 같습니다. 고생하셨습니다! 💊
Comment on lines
+8
to
+11
| public enum PostStatus { | ||
| ACTIVE("활성화"), | ||
| HIDDEN("숨김"); | ||
|
|
There was a problem hiding this comment.
과제에서 요구한 내용 명확하게 잘 구현하신 것 같습니다. 고생 많으셨습니다!
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. 핵심 변경 사항
Report (신고 엔티티)
reporterId와 targetId를 필드로 가지며, 생성 시 기본 상태는 PENDING으로 설정됩니다.
Service: reportRepository를 호출하여 이미 존재하는 신고인 경우 예외를 발생시켜 데이터 중복을 차단합니다.
Post (게시글 엔티티 & 서비스)
status 필드를 통해 게시글의 현재 상태를 추적합니다.
Service: hidePost() 메서드를 통해 특정 게시글의 상태를 HIDDEN으로 안전하게 변경합니다
3. 실행 및 검증 결과
게시글 숨김

게시글 신고

게시글 중복신고

4. 완료 사항
5. 추가 사항
제출 체크리스트
{이름}/main브랜치다{이름}/{숫자}주차브랜치다Reviewer 참고