-
Notifications
You must be signed in to change notification settings - Fork 8
feat: 지원 시 지원 횟수 응답값 추가 #239
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: 지원 시 지원 횟수 응답값 추가 #239
Conversation
nayonsoso
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.
빠른 구현 좋습니다 👍👍👍
| public record ApplicationSubmissionResponse( | ||
| boolean isSuccess) { | ||
| int applyCount | ||
| ) { | ||
| public static ApplicationSubmissionResponse from(Application application) { | ||
| return new ApplicationSubmissionResponse(application.getUpdateCount()); | ||
| } | ||
| } |
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.
"업데이트 횟수" 반환하는 것 좋네요!
프론트에서 메세지를 주기도 편해보입니다.
다만 api 문서 최신화를 위해서 api docs도 업데이트해주세요~
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.
Response만 바뀌었는데 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.
없네요.. 머쓱🫨
관련 이슈
작업 내용
특이 사항
기존 지원서 제출 api 서비스 로직에서 성공 시 true, 실패 시 예외로 되어있었는데 이렇게되면 true를 반환할 이유가 없다고 생각해서 바로 지원횟수를 응답하는 응답 dto로 반환하게 변경하였습니다.