Skip to content

[Feat/#43] - 사용자 탈퇴 사유 수집 기능#44

Merged
ttttkii913 merged 3 commits into
developfrom
feature/delete-user-reason
May 27, 2026
Merged

[Feat/#43] - 사용자 탈퇴 사유 수집 기능#44
ttttkii913 merged 3 commits into
developfrom
feature/delete-user-reason

Conversation

@ttttkii913
Copy link
Copy Markdown
Contributor

@ttttkii913 ttttkii913 commented May 26, 2026

💻 관련 이슈

관련된 이슈 번호를 적어주세요.

✨ 작업 내용

이번 PR에서 작업한 내용을 간단하게 적어주세요.

  • 사용자 탈퇴 사유 수집
  • 피그마 확인 후 기존 탈퇴 로직에 사유 수집 기능 추가

📄 상세 내용

작업의 상세 설명, 고려한 부분, 코드 구조 등에 대해 설명해 주세요.

  • ENUM으로 사유 관리, ETC일 경우 상세 사유를 써야 탈퇴 가능
  • ETC가 아닌 경우 detail: null 로 요청
    LOW_QUALITY,        // 서비스 퀄리티가 낮아요
    LOW_TRUST,          // 신뢰도가 떨어져요
    FOUND_ALTERNATIVE,  // 대체할 만한 서비스를 찾았어요
    HARD_TO_USE,        // 서비스 사용이 어려워요
    PRESSURE,           // 부담감이 있어요
    ETC                 // 기타

📷 스크린샷

관련된 스크린샷이 있다면 첨부해 주세요.

image
  • 별도의 테이블로 저장됩니다.

✅ 체크리스트

PR을 보내기 전에 아래 항목들을 확인해 주세요.

  • 코드 컨벤션 준수
  • 빌드 성공
  • 로직 자체 테스트 완료
  • 불필요한 파일/코드 제거(개행 정리)
  • 이슈 번호 연결 확인
  • EOL(End Of Line) 확인

❕리뷰 요구 사항

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해 주세요.

  • 탈퇴 중 다른 이슈가 없는지 확인 부탁드립니다~!

@ttttkii913 ttttkii913 requested a review from goodispotato May 26, 2026 17:30
@ttttkii913 ttttkii913 self-assigned this May 26, 2026
@ttttkii913 ttttkii913 added the ✨feature 구현, 개선 사항 관련 부분 label May 26, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 26, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: faec858b-507f-4cca-a9f8-336a636ec414

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/delete-user-reason

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a feature to capture and save user deletion reasons during the account withdrawal process. It adds a new UserDeleteReason entity, repository, enum, and request DTO, and updates the user controller and service to process and validate these reasons. The review feedback highlights critical improvements: adding the missing @Valid annotation on the controller endpoint to enforce request validation, correcting the HTTP status code for invalid deletion requests from NOT_FOUND to BAD_REQUEST, and enforcing database-level nullability constraints on the deletion reason enum field.

Comment thread SossBar/src/main/java/com/sossbar/user/controller/UserController.java Outdated
Comment thread SossBar/src/main/java/com/sossbar/global/common/code/ErrorCode.java Outdated
@goodispotato
Copy link
Copy Markdown
Contributor

image 스크린샷 2026-05-27 115936 스크린샷 2026-05-27 115910 잘 작동합니다! 머지하셔도 될 것 같아요. 수고하셨습니다 ✨✨

@ttttkii913 ttttkii913 merged commit 0037d38 into develop May 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨feature 구현, 개선 사항 관련 부분

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants