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

getLastKey utils 함수화 #49

Open
jagaldol opened this issue Oct 11, 2023 · 0 comments
Open

getLastKey utils 함수화 #49

jagaldol opened this issue Oct 11, 2023 · 0 comments
Labels
Priority: Low 추가적인 일 Type: Maintenance refactoring 등 코드 개선 및 유지 보수

Comments

@jagaldol
Copy link
Member

Description

#41 PR에서 ApplicantService내에 getLastKey라는 private 메서드가 존재합니다.

private Long getLastKey(List<Applicant> applicants) {
    return applicants.isEmpty() ? CursorRequest.NONE_KEY : applicants.get(applicants.size() - 1).getId();
}

커서 페이징을 하는 api의 서비스에서 모두 사용하는 로직이여서 util 함수로 분리하면 좋을 거 같습니다.

@jagaldol jagaldol added Priority: Low 추가적인 일 Type: Maintenance refactoring 등 코드 개선 및 유지 보수 labels Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Low 추가적인 일 Type: Maintenance refactoring 등 코드 개선 및 유지 보수
Projects
None yet
Development

No branches or pull requests

1 participant