-
Notifications
You must be signed in to change notification settings - Fork 3
주식 서버 커서 기반 페이징 기능 구현 및 예외 처리 #162
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- findByCodeOrderByMinutePriceIdAsc는 첫 페이지 조회 시 클라이언트가 요청한 size만큼의 데이터 전달
…eIdAsc method 구현 - findByCodeAndMinutePriceIdGreaterThanOrderByMinutePriceIdAsc는 클라이언트가 요청한 마지막 ObjectId부터 size만큼의 데이터를 가져옴
- totalCount, Page 삭제 - hasNext, lastObjectId 추가 - Page type -> List type, hasNext, lastObjectId 파라미터 추가 - hasNext는 뒤에 남은 데이터가 존재하는 지 여부 - lastObjectId는 클라이언트에게 전달한 마지막 데이터의 ObjectId
- 첫 과거 데이터 요청의 경우
- 이미 한 번 이상 과거 데이터를 요청 받은 경우
- 과거 데이터 요청 유형 구분 method - 처음인지 아닌지
- 데이터 조회 시 Size+1 조회 - 조회 후 minutePriceChart가 size 이하라면 남은 데이터가 없음 즉, 모든 데이터 조회 완료 - 아니라면 size 만큼의 데이터 제공
- List empty 예외 처리
- size 기본 값 120 - cursorId null 허용
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
✅ Deploy Preview for jootalkpia canceled.
|
- collection은 snake case - field는 camel case
Member
|
에러 발생시 커스텀 에러코드 같이 발생시켜주세요! 주식서버니까 S40001 형식이면 좋을 것 같습니다 |
Member
bo-ram-bo-ram
left a comment
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.
swagger 구현도 필요해보입니다!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull request
Related issue
Resolve #116
Resolve #163
Motivation and context
Solution
How has this been tested
Types of changes
Checklist