Skip to content

Conversation

@Gyuhyeok99
Copy link
Contributor

관련 이슈

작업 내용

  1. 지원 시 지원횟수 응답값을 추가하였습니다.
  2. 학기별 지원 최대횟수가 4번되는 버그를 수정하였습니다.
  3. 지원 관련 서비스 로직의 불필요한 조건문을 제거하였습니다.

특이 사항

기존 지원서 제출 api 서비스 로직에서 성공 시 true, 실패 시 예외로 되어있었는데 이렇게되면 true를 반환할 이유가 없다고 생각해서 바로 지원횟수를 응답하는 응답 dto로 반환하게 변경하였습니다.

@Gyuhyeok99 Gyuhyeok99 self-assigned this Feb 20, 2025
Copy link
Collaborator

@nayonsoso nayonsoso 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 5 to 11
public record ApplicationSubmissionResponse(
boolean isSuccess) {
int applyCount
) {
public static ApplicationSubmissionResponse from(Application application) {
return new ApplicationSubmissionResponse(application.getUpdateCount());
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

"업데이트 횟수" 반환하는 것 좋네요!
프론트에서 메세지를 주기도 편해보입니다.
다만 api 문서 최신화를 위해서 api docs도 업데이트해주세요~

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Response만 바뀌었는데 Response도 바꾸는 곳이 있나요?

Copy link
Collaborator

Choose a reason for hiding this comment

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

없네요.. 머쓱🫨

@Gyuhyeok99 Gyuhyeok99 merged commit 8d69622 into solid-connection:develop Feb 26, 2025
@Gyuhyeok99 Gyuhyeok99 deleted the feat/204-apply-count branch May 11, 2025 15:51
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.

지원 시 지원 횟수 반환

3 participants