-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 모집 공고 절차 추가 및 관련 API 구현 완료 (#480)
- Loading branch information
Showing
14 changed files
with
116 additions
and
11 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
.../domain/hiring/application/application/exception/RecruitmentEndDateExceededException.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 page.clab.api.domain.hiring.application.application.exception; | ||
|
||
public class RecruitmentEndDateExceededException extends RuntimeException { | ||
|
||
public RecruitmentEndDateExceededException(String message) { | ||
super(message); | ||
} | ||
} |
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
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
29 changes: 29 additions & 0 deletions
29
...api/domain/hiring/recruitment/application/dto/response/RecruitmentEndDateResponseDto.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,29 @@ | ||
package page.clab.api.domain.hiring.recruitment.application.dto.response; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import page.clab.api.domain.hiring.application.domain.ApplicationType; | ||
import page.clab.api.domain.hiring.recruitment.domain.Recruitment; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
@Builder | ||
public class RecruitmentEndDateResponseDto { | ||
|
||
private Long id; | ||
private ApplicationType applicationType; | ||
|
||
public static List<RecruitmentEndDateResponseDto> toDto(List<Recruitment> recruitments) { | ||
return recruitments.stream() | ||
.map(RecruitmentEndDateResponseDto::toDto) | ||
.toList(); | ||
} | ||
|
||
public static RecruitmentEndDateResponseDto toDto(Recruitment recruitment) { | ||
return RecruitmentEndDateResponseDto.builder() | ||
.id(recruitment.getId()) | ||
.applicationType(recruitment.getApplicationType()) | ||
.build(); | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
.../api/domain/hiring/recruitment/application/port/in/RetrieveRecentRecruitmentsUseCase.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 |
---|---|---|
@@ -1,9 +1,13 @@ | ||
package page.clab.api.domain.hiring.recruitment.application.port.in; | ||
|
||
import page.clab.api.domain.hiring.recruitment.application.dto.response.RecruitmentEndDateResponseDto; | ||
import page.clab.api.domain.hiring.recruitment.application.dto.response.RecruitmentResponseDto; | ||
|
||
import java.util.List; | ||
|
||
public interface RetrieveRecentRecruitmentsUseCase { | ||
|
||
List<RecruitmentResponseDto> retrieveRecentRecruitments(); | ||
|
||
List<RecruitmentEndDateResponseDto> retrieveRecruitmentsByEndDate(); | ||
} |
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
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
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