-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Feat/48] 회원 신고 API 구현 #60
Conversation
@NotNull | ||
Long targetMemberId; | ||
|
||
@NotNull |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 부분 list가 비어있지 않을 때 검증하기 위해서 @NotNull 말고 다른 어노테이션 사용해야 할 것 같아요!
import java.util.Set; | ||
import java.util.stream.Collectors; | ||
|
||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
주석은 그냥 삭제 부탁드려요..!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저도 주석 삭제하는 편이 좋을 것 같아요!
|
||
public Report insertReport(ReportRequest.reportInsertDTO request, Long memberId){ | ||
Member member = memberRepository.findById(memberId).orElseThrow(()->new MemberHandler(ErrorStatus.MEMBER_NOT_FOUND)); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
member와 targetMember가 같은 회원인 경우 에러 처리 추가가 필요할 것 같아요
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public static class reportInsertResultDTO{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reportInsertResponseDTO
import java.util.Set; | ||
import java.util.stream.Collectors; | ||
|
||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저도 주석 삭제하는 편이 좋을 것 같아요!
🚀 개요
회원 신고 API 구현.
🔍 변경사항
⏳ 작업 내용
📝 논의사항