-
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] 조회수 조희 API #31
Conversation
public class ReportService { | ||
|
||
private final ReportFinder reportFinder; | ||
|
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.
@Trancation(readOnly=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.
.
ReportServiceResponse response = new ReportServiceResponse(reportService.getMyReportSequence()); | ||
return HankkiResponse.success(CommonSuccessCode.OK, response); |
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 final ReportFinder reportFinder; | ||
|
||
public long getMyReportSequence() { | ||
return reportFinder.getReportCount() + 1; |
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.
1은 이름에 의미를 담아 상수로 빼주세요
@transactional(readOnly=true)붙여주세요
Related Issue 📌
close #30
Description ✔️
To Reviewers
딱히 예외가 발생할만한 상황이 없는 것 같아 예외처리는 하지 않았습니다.