-
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
✨ UserReport #180
✨ UserReport #180
Conversation
|
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.
신고 저장에 필요한 부분만 간결하게 잘 작성해주신 것 같아요!
로컬에서 동작하는것도 확인했습니다 😁
|
||
private String details; | ||
|
||
private LocalDateTime createdAt; |
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.
(단순 의견) 저도 레시피 생성하는 과정에서 같은 방식으로 createdAt을 저장하고 있는데요, 이렇게 여러 클래스에서 createdAt을 다루게 되면 @EnableJpaAuditing
도입을 고려해봐도 좋을 것 같습니다!
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.
폰드 수고했슴당👍👍
@@ -77,7 +79,7 @@ void checkUsername() { | |||
.when().get("/api/user/username/check") | |||
.then().log().all() | |||
.statusCode(200) | |||
.body("available", Matchers.is(true)); | |||
.body("available", is(true)); |
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 UserReportResponse reportUser(long reporterId, UserReportRequest userReportRequest) { | ||
User reporter = userRepository.findById(reporterId).orElseThrow(); | ||
User reportee = userRepository.findById(userReportRequest.reporteeId()).orElseThrow(); |
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.
추후에 NotFoundException이 필요할것 같아 추가햐면 좋아보입니다!
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.
반영하였습니다!
감사합니다!
|
유저 신고 기능