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

[feat] 조회수 조희 API #31

Merged
merged 5 commits into from
Jul 10, 2024
Merged

[feat] 조회수 조희 API #31

merged 5 commits into from
Jul 10, 2024

Conversation

kgy1008
Copy link
Member

@kgy1008 kgy1008 commented Jul 8, 2024

Related Issue 📌

close #30

Description ✔️

  • 조회수 조회 api 입니다.

To Reviewers

딱히 예외가 발생할만한 상황이 없는 것 같아 예외처리는 하지 않았습니다.

@kgy1008 kgy1008 added the feature label Jul 8, 2024
@kgy1008 kgy1008 self-assigned this Jul 8, 2024
@Parkjyun Parkjyun changed the title [Feat] 조회수 조희 API [feat] 조회수 조희 API Jul 9, 2024
public class ReportService {

private final ReportFinder reportFinder;

Copy link
Contributor

Choose a reason for hiding this comment

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

@Trancation(readOnly=true) 처리해주세요

@Parkjyun Parkjyun added api and removed feature labels Jul 10, 2024
@kgy1008 kgy1008 requested a review from Parkjyun July 10, 2024 07:27
Copy link
Contributor

@Parkjyun Parkjyun left a comment

Choose a reason for hiding this comment

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

.

Comment on lines 22 to 23
ReportServiceResponse response = new ReportServiceResponse(reportService.getMyReportSequence());
return HankkiResponse.success(CommonSuccessCode.OK, response);
Copy link
Contributor

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;
Copy link
Contributor

Choose a reason for hiding this comment

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

1은 이름에 의미를 담아 상수로 빼주세요
@transactional(readOnly=true)붙여주세요

@kgy1008 kgy1008 merged commit 52fc3e9 into develop Jul 10, 2024
1 check passed
@kgy1008 kgy1008 deleted the feat/30 branch December 2, 2024 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] 조회수 조회 API
3 participants