-
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.
GETP-208 refactor: project apply 컴포넌트 포트-어댑터 아키텍쳐 적용 (#139)
* GETP-208 refactor: project apply 컴포넌트가 port에 의존하도록 변경 * GETP-208 refactor: 영속성 관련 기능을 persistence adapter로 분리
- Loading branch information
Showing
32 changed files
with
249 additions
and
187 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
2 changes: 1 addition & 1 deletion
2
...ption/AlreadyAppliedProjectException.java → ...ption/AlreadyAppliedProjectException.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
8 changes: 8 additions & 0 deletions
8
src/main/java/es/princip/getp/application/project/apply/port/in/ApplyProjectUseCase.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 es.princip.getp.application.project.apply.port.in; | ||
|
||
import es.princip.getp.application.project.apply.command.ApplyProjectCommand; | ||
|
||
public interface ApplyProjectUseCase { | ||
|
||
Long apply(final ApplyProjectCommand command); | ||
} |
3 changes: 2 additions & 1 deletion
3
.../java/es/princip/getp/application/project/apply/port/out/CheckProjectApplicationPort.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,5 +1,6 @@ | ||
package es.princip.getp.application.project.apply.port.out; | ||
|
||
public interface CheckProjectApplicationPort { | ||
|
||
|
||
boolean existsByApplicantIdAndProjectId(Long applicantId, Long projectId); | ||
} |
5 changes: 0 additions & 5 deletions
5
...n/java/es/princip/getp/application/project/apply/port/out/LoadProjectApplicationPort.java
This file was deleted.
Oops, something went wrong.
5 changes: 4 additions & 1 deletion
5
...n/java/es/princip/getp/application/project/apply/port/out/SaveProjectApplicationPort.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,5 +1,8 @@ | ||
package es.princip.getp.application.project.apply.port.out; | ||
|
||
import es.princip.getp.domain.project.apply.model.ProjectApplication; | ||
|
||
public interface SaveProjectApplicationPort { | ||
|
||
|
||
Long save(ProjectApplication projectApplication); | ||
} |
5 changes: 0 additions & 5 deletions
5
...java/es/princip/getp/application/project/apply/port/out/UpdateProjectApplicationPort.java
This file was deleted.
Oops, something went wrong.
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
19 changes: 10 additions & 9 deletions
19
src/main/java/es/princip/getp/domain/common/model/AttachmentFile.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
28 changes: 14 additions & 14 deletions
28
src/main/java/es/princip/getp/domain/common/model/Duration.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
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
11 changes: 0 additions & 11 deletions
11
src/main/java/es/princip/getp/domain/project/apply/ProjectApplicationRepository.java
This file was deleted.
Oops, something went wrong.
66 changes: 20 additions & 46 deletions
66
src/main/java/es/princip/getp/domain/project/apply/model/ProjectApplication.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
Oops, something went wrong.