Skip to content

Commit

Permalink
Merge pull request #133 from teamterning/refactor/131
Browse files Browse the repository at this point in the history
[♻️ refactor/#131] 홈화면 > 곧 마감되는 관심 공고 전달 데이터 수정
  • Loading branch information
junggyo1020 authored Sep 11, 2024
2 parents aef33a5 + b7c6322 commit c78c121
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ public record UpcomingScrapResponseDto(
boolean isScrapped,
String color,
String deadline,
String startYearMonth
String startYearMonth,
String companyInfo
) {
public static UpcomingScrapResponseDto of(final Scrap scrap){
String startYearMonth = scrap.getInternshipAnnouncement().getStartYear() + "년 " + scrap.getInternshipAnnouncement().getStartMonth() + "월";
Expand All @@ -29,6 +30,7 @@ public static UpcomingScrapResponseDto of(final Scrap scrap){
.color(scrap.getColorToHexValue())
.workingPeriod(scrap.getInternshipAnnouncement().getWorkingPeriod())
.startYearMonth(startYearMonth)
.companyInfo(scrap.getInternshipAnnouncement().getCompany().getCompanyInfo())
.build();
}
}

0 comments on commit c78c121

Please sign in to comment.