Skip to content

Commit

Permalink
refactor: 대시보드 response에 feeName 필드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
seulgi99 committed Aug 30, 2024
1 parent 0f4eae4 commit a3f283e
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,19 @@
import java.math.BigDecimal;

public record RecruitmentRoundFullDto(
Long recruitmentId, String name, Period period, BigDecimal fee, RoundType roundType, String roundTypeValue) {
Long recruitmentId,
String name,
Period period,
String feeName,
BigDecimal fee,
RoundType roundType,
String roundTypeValue) {
public static RecruitmentRoundFullDto from(RecruitmentRound recruitmentRound) {
return new RecruitmentRoundFullDto(
recruitmentRound.getId(),
recruitmentRound.getName(),
recruitmentRound.getPeriod(),
recruitmentRound.getRecruitment().getFeeName(),
recruitmentRound.getRecruitment().getFee().getAmount(),
recruitmentRound.getRoundType(),
recruitmentRound.getRoundType().getValue());
Expand Down

0 comments on commit a3f283e

Please sign in to comment.