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

feat: 리쿠르팅에 회비와 차수 추가 #383

Merged
merged 5 commits into from
Jun 14, 2024

Conversation

Sangwook02
Copy link
Member

@Sangwook02 Sangwook02 commented Jun 13, 2024

🌱 관련 이슈

📌 작업 내용 및 특이사항

  • 리쿠르팅에 Money(회비)와 RoundType(차수)를 추가했습니다. RoundType은 Enum으로 관리합니다.
  • 학년도, 학기, 차수가 모두 중복되는 리쿠르팅은 생성하지 못하도록 리쿠르팅 생성 Api를 수정했습니다.
  • test에서 수정된 파일이 많기는 하지만 대부분 Recruitment.createRecruitment 메서드 수정에 따른 변화입니다.

📝 참고사항

📚 기타

@Sangwook02 Sangwook02 added ✨ feature 새로운 기능 추가 및 수정 ⚓ Domain: Recruitment 리쿠르트먼트 관련 작업 labels Jun 13, 2024
@Sangwook02 Sangwook02 self-assigned this Jun 13, 2024
@Sangwook02 Sangwook02 requested a review from a team as a code owner June 13, 2024 11:32
Copy link

Job Summary for Gradle

Check Style and Test to Develop :: build-test
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
gdsc check 8.5 Build Scan published

Copy link
Member

@AlmondBreez3 AlmondBreez3 left a 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;
Copy link
Member

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,
Copy link
Member

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,
Copy link
Member

Choose a reason for hiding this comment

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

이거 객체 취급이라서 fee.amount 이런 식으로 요청해야 할 거에요.
그냥 BigDecimal로 받아서 Money 인자로 넘겨주면 어떨까 싶네요

Copy link

Job Summary for Gradle

Check Style and Test to Develop :: build-test
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
gdsc check 8.5 Build Scan published

Copy link
Member

@uwoobeat uwoobeat left a comment

Choose a reason for hiding this comment

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

룩스굿투미

@Sangwook02 Sangwook02 merged commit f7296b4 into develop Jun 14, 2024
1 check passed
@Sangwook02 Sangwook02 deleted the feature/369-recruitment-add-money-and-round branch June 14, 2024 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚓ Domain: Recruitment 리쿠르트먼트 관련 작업 ✨ feature 새로운 기능 추가 및 수정
Projects
None yet
Development

Successfully merging this pull request may close these issues.

✨ Recruitment에 회비 및 차수 추가
3 participants