Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ Feature ] - 사용자 신고 API 구현 #42

Closed
3 tasks done
leeeunda opened this issue Jun 3, 2024 · 0 comments
Closed
3 tasks done

[ Feature ] - 사용자 신고 API 구현 #42

leeeunda opened this issue Jun 3, 2024 · 0 comments
Assignees

Comments

@leeeunda
Copy link
Collaborator

leeeunda commented Jun 3, 2024

🛠️ 개발 예정 기능

특정 사용자를 신고하는 API 구현

💭 해당 기능 역할

  • 다른 유저의 신고가 10번 이상 누적되면 User의 reported 필드를 true로 바꿔줌. -> 밤샘 참여 불가능, 팀 생성 불가능
  • A라는 유저에 대하여 B 유저는 A 유저를 한 번만 신고할 수 있음. 다시 신고할 수 없음
  • 일반 유저가 신고가 10번 이상 누적되면? 그 유저는 방에서 자동으로 탈퇴당함
  • 방장이 신고가 10번 이상 누적되면? 방장에서 물러나고 자동으로 다른 방장을 설정

📝 check-lists

  • User Entity isreported 필드 추가
  • 10번 이상 신고 당할 시 isreported 필드를 true로 변경
  • 예외처리
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant