-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: 일정 기간이 남은 지원 현황을 조회하여 반환하는 기능 구현
- Loading branch information
Showing
5 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/main/java/cotato/growingpain/log/dto/response/JobApplicationListResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package cotato.growingpain.log.dto.response; | ||
|
||
import java.util.List; | ||
|
||
public record JobApplicationListResponse( | ||
List<JobApplicationResponse> jobApplicaionList | ||
) { | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/java/cotato/growingpain/log/dto/response/JobApplicationResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package cotato.growingpain.log.dto.response; | ||
|
||
import cotato.growingpain.log.domain.entity.JobApplication; | ||
|
||
public record JobApplicationResponse( | ||
|
||
Long jobPostId, | ||
Long jobApplicationId, | ||
String companyName, | ||
String applicationType, | ||
String applicationCloseDate | ||
) { | ||
public JobApplicationResponse(JobApplication jobApplication) { | ||
this( | ||
jobApplication.getJobPost().getId(), | ||
jobApplication.getId(), | ||
jobApplication.getJobPost().getCompanyName(), | ||
jobApplication.getApplicationType().name(), | ||
jobApplication.getApplicationCloseDate() | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters