-
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.
Merge pull request #110 from TeamSynergyy/feature/queryDsl
#87 프로젝트 도메인 대체키 반영
- Loading branch information
Showing
42 changed files
with
258 additions
and
122 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
18 changes: 18 additions & 0 deletions
18
src/main/java/com/seoultech/synergybe/domain/project/application/ProjectFacade.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,18 @@ | ||
//package com.seoultech.synergybe.domain.project.application; | ||
// | ||
//import com.seoultech.synergybe.domain.project.domain.ProjectCommand; | ||
//import com.seoultech.synergybe.domain.project.domain.service.ProjectServiceV2; | ||
//import lombok.RequiredArgsConstructor; | ||
//import lombok.extern.slf4j.Slf4j; | ||
//import org.springframework.stereotype.Service; | ||
// | ||
//@Slf4j | ||
//@Service | ||
//@RequiredArgsConstructor | ||
//public class ProjectFacade { | ||
// private final ProjectServiceV2 projectServiceV2; | ||
// public String registerProject(ProjectCommand.RegisterProjectRequest request) { | ||
// var projectToken = projectServiceV2.registerProject(request); | ||
// | ||
// } | ||
//} |
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
src/main/java/com/seoultech/synergybe/domain/project/domain/ProjectCommand.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 com.seoultech.synergybe.domain.project.domain; | ||
|
||
import com.fasterxml.jackson.annotation.JsonFormat; | ||
import jakarta.validation.constraints.NotBlank; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
public class ProjectCommand { | ||
public record RegisterProjectRequest( | ||
@NotBlank(message = "이름은 필수항목입니다.") | ||
String name, | ||
@NotBlank(message = "내용은 필수항목입니다.") | ||
String content, | ||
@NotBlank(message = "분야는 필수항목입니다.") | ||
ProjectField field, | ||
@NotBlank(message = "경도은 필수항목입니다.") | ||
Double longitude, | ||
@NotBlank(message = "위도는 필수항목입니다.") | ||
Double latitude, | ||
@NotBlank(message = "시작일시는 필수항목입니다.") | ||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm", timezone = "Asia/Seoul") | ||
LocalDateTime startAt, | ||
@NotBlank(message = "종료일시는 필수항목입니다.") | ||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm", timezone = "Asia/Seoul") | ||
LocalDateTime endAt | ||
|
||
) { | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ynergybe/domain/project/ProjectField.java → ...e/domain/project/domain/ProjectField.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
5 changes: 5 additions & 0 deletions
5
src/main/java/com/seoultech/synergybe/domain/project/domain/ProjectReader.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,5 @@ | ||
package com.seoultech.synergybe.domain.project.domain; | ||
|
||
public interface ProjectReader { | ||
void getProject(); | ||
} |
2 changes: 1 addition & 1 deletion
2
...nergybe/domain/project/ProjectStatus.java → .../domain/project/domain/ProjectStatus.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: 4 additions & 4 deletions
8
...ect/service/ProjectMapperEntityToDto.java → ...ain/service/ProjectMapperEntityToDto.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
18 changes: 18 additions & 0 deletions
18
src/main/java/com/seoultech/synergybe/domain/project/domain/service/ProjectServiceV2.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,18 @@ | ||
package com.seoultech.synergybe.domain.project.domain.service; | ||
|
||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
public interface ProjectServiceV2 { | ||
void createProject(); | ||
|
||
void validateProjectUser(); | ||
|
||
void validateProjectLeader(); | ||
|
||
void updateProject(); | ||
|
||
void deleteProject(); | ||
|
||
void search(); | ||
} |
3 changes: 1 addition & 2 deletions
3
...ybe/domain/project/vo/ProjectContent.java → ...ain/project/domain/vo/ProjectContent.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
2 changes: 1 addition & 1 deletion
2
...be/domain/project/vo/ProjectLocation.java → ...in/project/domain/vo/ProjectLocation.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
2 changes: 1 addition & 1 deletion
2
...ergybe/domain/project/vo/ProjectName.java → ...domain/project/domain/vo/ProjectName.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
4 changes: 2 additions & 2 deletions
4
...project/repository/ProjectRepository.java → ...ect/infrastructure/ProjectRepository.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.