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

[Feature] 이동봉사 신청 API 구현 #53

Merged
merged 3 commits into from
Nov 12, 2023

Conversation

kyeong-hyeok
Copy link
Member

💡 연관된 이슈

close #52

📝 작업 내용

  • 이동봉사 신청 API 구현
  • 이동봉사 신청 Controller 테스트 코드 추가

💬 리뷰 요구 사항

@kyeong-hyeok kyeong-hyeok added ✨ Feature 기능 개발 Priority: Medium 우선순위 중간 🐯 Koeyhk 담당자 labels Nov 12, 2023
@kyeong-hyeok kyeong-hyeok linked an issue Nov 12, 2023 that may be closed by this pull request
2 tasks
Copy link
Member

@hojeong2747 hojeong2747 left a 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) {
Copy link
Member

Choose a reason for hiding this comment

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

입력 필드 값 validation 멘트 통일하면 좋을 것 같아요! 지금은 다 다르게 되어 있는데, 닉네임은 2~10자로 입력해 주세요. 이런 식으로 필드명은 몇자로 입력해 주세요. 로 맞추면 어떨까요~? 더 좋은 멘트가 있으려나요?

Copy link
Member Author

Choose a reason for hiding this comment

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

좋습니다! @ NotBlank에 대한 멘트도 통일하는 게 좋을까요?

Copy link
Member

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);
Copy link
Member

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")
Copy link
Member

Choose a reason for hiding this comment

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

확실히 uri를 계층 구조 분리해서 작성하니 이해하기 편하네요~! 리뷰랑 엮어서 생각하니 좋습니다.

@kyeong-hyeok kyeong-hyeok merged commit 784d5bf into develop Nov 12, 2023
@kyeong-hyeok kyeong-hyeok deleted the feat/52-volunteer-apply-api branch November 12, 2023 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature 기능 개발 🐯 Koeyhk 담당자 Priority: Medium 우선순위 중간
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] 이동봉사 신청 API 구현
2 participants