-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
63 changed files
with
444 additions
and
108 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
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
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
15 changes: 15 additions & 0 deletions
15
...ation/src/main/java/team/retum/jobis/domain/notice/dto/response/QueryNoticesResponse.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,15 @@ | ||
package team.retum.jobis.domain.notice.dto.response; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import team.retum.jobis.domain.notice.spi.vo.NoticeVO; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class QueryNoticesResponse { | ||
|
||
private final List<NoticeVO> notices; | ||
|
||
} |
5 changes: 5 additions & 0 deletions
5
jobis-application/src/main/java/team/retum/jobis/domain/notice/spi/QueryNoticePort.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,10 +1,15 @@ | ||
package team.retum.jobis.domain.notice.spi; | ||
|
||
import team.retum.jobis.domain.notice.model.Notice; | ||
import team.retum.jobis.domain.notice.spi.vo.NoticeVO; | ||
|
||
import java.util.List; | ||
import java.util.Optional; | ||
|
||
public interface QueryNoticePort { | ||
|
||
Optional<Notice> queryNoticeById(Long noticeId); | ||
|
||
List<NoticeVO> queryNotices(); | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
jobis-application/src/main/java/team/retum/jobis/domain/notice/spi/vo/NoticeVO.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,15 @@ | ||
package team.retum.jobis.domain.notice.spi.vo; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class NoticeVO{ | ||
|
||
private final Long id; | ||
private final String title; | ||
private final LocalDateTime createdAt; | ||
} |
22 changes: 22 additions & 0 deletions
22
...application/src/main/java/team/retum/jobis/domain/notice/usecase/QueryNoticesUseCase.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 team.retum.jobis.domain.notice.usecase; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
import team.retum.jobis.common.annotation.ReadOnlyUseCase; | ||
import team.retum.jobis.domain.notice.dto.response.QueryNoticesResponse; | ||
import team.retum.jobis.domain.notice.spi.QueryNoticePort; | ||
import team.retum.jobis.domain.notice.spi.vo.NoticeVO; | ||
|
||
import java.util.List; | ||
|
||
@RequiredArgsConstructor | ||
@ReadOnlyUseCase | ||
public class QueryNoticesUseCase { | ||
|
||
private final QueryNoticePort queryNoticePort; | ||
|
||
public QueryNoticesResponse execute() { | ||
List<NoticeVO> noticeVOs = queryNoticePort.queryNotices(); | ||
|
||
return new QueryNoticesResponse(noticeVOs); | ||
} | ||
} |
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
15 changes: 15 additions & 0 deletions
15
...in/java/team/retum/jobis/domain/recruitment/dto/response/QueryMyRecruitmentsResponse.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,15 @@ | ||
package team.retum.jobis.domain.recruitment.dto.response; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import team.retum.jobis.domain.recruitment.spi.vo.MyAllRecruitmentsVO; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
@NoArgsConstructor(force = true) | ||
@AllArgsConstructor | ||
public class QueryMyRecruitmentsResponse { | ||
private final List<MyAllRecruitmentsVO> myRecruitments; | ||
} |
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
Oops, something went wrong.