-
Notifications
You must be signed in to change notification settings - Fork 2
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
[Feature] 이동봉사 신청 API 구현 #53
Conversation
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.
신경 쓸 부분이 많은 공고-신청 파트인데 첫 설계에 공을 들여서 그런지 깔끔한 로직이 만들어지는 것 같아요! 최고 👍
@NotBlank(message = "교통수단은 필수 입력 값입니다.") | ||
String transportation, | ||
@Size(min=10, max=200, message = "10~200자의 내용을 작성해 주세요.") | ||
String content) { |
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.
입력 필드 값 validation 멘트 통일하면 좋을 것 같아요! 지금은 다 다르게 되어 있는데, 닉네임은 2~10자로 입력해 주세요.
이런 식으로 필드명은 몇자로 입력해 주세요.
로 맞추면 어떨까요~? 더 좋은 멘트가 있으려나요?
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.
좋습니다! @ NotBlank에 대한 멘트도 통일하는 게 좋을까요?
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.
필드명은 필수 입력 값입니다.
로 통일하면 좋을 것 같습니다~!
applicationRepository.save(application); | ||
|
||
// 공고 상태 승인 대기 중으로 변경 | ||
post.updateStatus(PostStatus.WAITING); |
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.
값 존재 여부부터 저장 및 갱신까지 깔끔합니다 👍
"P2, 해당 공고를 찾을 수 없습니다. \t\n AP1, 이미 신청된 공고입니다." | ||
, content = @Content(schema = @Schema(implementation = ErrorResponse.class))) | ||
}) | ||
@PostMapping("/volunteers/posts/{postId}/applications") |
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.
확실히 uri를 계층 구조 분리해서 작성하니 이해하기 편하네요~! 리뷰랑 엮어서 생각하니 좋습니다.
💡 연관된 이슈
close #52
📝 작업 내용
💬 리뷰 요구 사항