Skip to content

Commit

Permalink
[♻️ refactor] 홈화면 > 곧 마감되는 관심 공고 전달 데이터 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
junggyo1020 committed Sep 11, 2024
1 parent 23f2f08 commit b7c6322
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 b7c6322

Please sign in to comment.