[4주차] 이예서/[feat] 추가 API 구현#164
Open
HandoA01 wants to merge 2 commits intoLeets-Official:이예서/mainfrom
Hidden character warning
The head ref may contain hidden characters: "\uc774\uc608\uc11c/4\uc8fc\ucc28"
Open
Conversation
HyeonSeongIM
approved these changes
Apr 30, 2026
| @@ -0,0 +1,6 @@ | |||
| package com.example.blog.domain.post.entity; | |||
|
|
|||
| public enum PostStatus { | |||
| } | ||
|
|
||
| // 게시글 삭제 (soft delete) | ||
| // 게시글 삭제 |
There was a problem hiding this comment.
주석에 soft delete를 지우셨는데 그렇다면 이제 soft delete가 아닌건가요??
kdobi
reviewed
Apr 30, 2026
| DUPLICATE_REPORT(HttpStatus.CONFLICT, "409_001", "이미 신고한 게시글입니다."), | ||
| ALREADY_RESOLVED(HttpStatus.CONFLICT, "409_002", "이미 처리 완료된 신고입니다."), | ||
| ALREADY_HIDDEN(HttpStatus.CONFLICT, "409_003", "이미 숨김 처리된 게시글입니다."), | ||
|
|
kallin1
approved these changes
Apr 30, 2026
| // PATCH /posts/{postId}/hide - 게시글 숨김 | ||
| @PatchMapping("/{postId}/hide") | ||
| public ApiResponse<Void> hidePost( | ||
| @RequestHeader("X-USER-ID") Long userId, |
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. 과제 요구사항 중 구현한 내용
/posts/{postId}/reports)/reports/{reportId}/resolve) — PENDING → RESOLVED/posts/{postId}/hide) — ACTIVE → HIDDEN2. 핵심 변경 사항
PostStatus(ACTIVE/HIDDEN) enum 및 Post 엔티티 상태 필드 추가Report도메인 신규 생성 (entity, repository, service, controller, dto, converter)(user_id, post_id)복합 유니크로 중복 신고 차단GlobalExceptionHandler핸들러 추가3. 실행 및 검증 결과
Postman으로 9개 시나리오 모두 정상 동작 확인 완료
기본 헬스체크 정상 동작 확인

빈 배열 응답

중복 신고 차단

신고 처리 완료

중복 처리 차단
4. 완료 사항
5. 추가 사항
closed #이슈번호BaseEntity/ 소프트 딜리트 패턴 유지X-USER-ID헤더 인증 방식 동일 적용/hide,/resolve)제출 체크리스트
{이름}/main브랜치다{이름}/{숫자}주차브랜치다Reviewer 참고