-
Notifications
You must be signed in to change notification settings - Fork 1
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: 리쿠르팅에 회비와 차수 추가 #383
feat: 리쿠르팅에 회비와 차수 추가 #383
Conversation
Job Summary for GradleCheck Style and Test to Develop :: build-test
|
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.
lgtm
@@ -25,25 +26,42 @@ public class Recruitment extends BaseSemesterEntity { | |||
@Embedded | |||
private Period period; | |||
|
|||
private Money fee; |
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.
VO라서 @Embedded
붙여야 하지 않나요?
} | ||
|
||
public static Recruitment createRecruitment( | ||
String name, | ||
LocalDateTime startDate, | ||
LocalDateTime endDate, | ||
Integer academicYear, | ||
SemesterType semesterType) { | ||
SemesterType semesterType, | ||
Money fee, |
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.
중요한 문제는 아니긴 한데 회차정보가 학기정보 다음에 오고, 회비는 맨 마지막에 오도록 배치하는게 낫지 않나 싶네요
@@ -15,4 +17,6 @@ public record RecruitmentCreateRequest( | |||
@Future @Schema(description = "모집기간 종료일", pattern = DATETIME) LocalDateTime endDate, | |||
@NotNull(message = "학년도는 null이 될 수 없습니다.") @Schema(description = "학년도", pattern = ACADEMIC_YEAR) | |||
Integer academicYear, | |||
@NotNull(message = "학기는 null이 될 수 없습니다.") @Schema(description = "학기") SemesterType semesterType) {} | |||
@NotNull(message = "학기는 null이 될 수 없습니다.") @Schema(description = "학기") SemesterType semesterType, | |||
@NotNull(message = "회비는 null이 될 수 없습니다.") @Schema(description = "회비") Money fee, |
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.
이거 객체 취급이라서 fee.amount 이런 식으로 요청해야 할 거에요.
그냥 BigDecimal로 받아서 Money 인자로 넘겨주면 어떨까 싶네요
Job Summary for GradleCheck Style and Test to Develop :: build-test
|
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를 수정했습니다.Recruitment.createRecruitment
메서드 수정에 따른 변화입니다.📝 참고사항
📚 기타