From 7558aae8fc43c19c5ed1ee9f1e38ac5aa3e1b6e3 Mon Sep 17 00:00:00 2001 From: dgjinsu Date: Mon, 29 Jan 2024 19:48:18 +0900 Subject: [PATCH] =?UTF-8?q?style:=20dto=20=EB=94=94=EB=A0=89=ED=86=A0?= =?UTF-8?q?=EB=A6=AC=20worker,=20company=EB=A1=9C=20=EB=B6=84=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jobPost/dtos/{ => company}/JobPostListResponse.java | 5 +---- .../jobPost/dtos/{ => company}/JobPostManageResponse.java | 4 +--- .../dtos/{ => company}/JobPostResponseForAcceptedApply.java | 2 +- .../dtos/{ => company}/JobPostResponseForPendingApply.java | 4 +--- .../jobPost/dtos/{ => company}/JobPostSaveRequest.java | 2 +- .../jobPost/dtos/{ => company}/TemporaryListResponse.java | 2 +- .../jobPost/dtos/{ => company}/TemporarySaveRequest.java | 2 +- .../jobPost/dtos/{ => company}/TemporaryUpdateRequest.java | 2 +- .../{JobPostService.java => JobPostCompanyService.java} | 6 ++---- 9 files changed, 10 insertions(+), 19 deletions(-) rename src/main/java/jikgong/domain/jobPost/dtos/{ => company}/JobPostListResponse.java (87%) rename src/main/java/jikgong/domain/jobPost/dtos/{ => company}/JobPostManageResponse.java (92%) rename src/main/java/jikgong/domain/jobPost/dtos/{ => company}/JobPostResponseForAcceptedApply.java (96%) rename src/main/java/jikgong/domain/jobPost/dtos/{ => company}/JobPostResponseForPendingApply.java (91%) rename src/main/java/jikgong/domain/jobPost/dtos/{ => company}/JobPostSaveRequest.java (98%) rename src/main/java/jikgong/domain/jobPost/dtos/{ => company}/TemporaryListResponse.java (95%) rename src/main/java/jikgong/domain/jobPost/dtos/{ => company}/TemporarySaveRequest.java (98%) rename src/main/java/jikgong/domain/jobPost/dtos/{ => company}/TemporaryUpdateRequest.java (98%) rename src/main/java/jikgong/domain/jobPost/service/{JobPostService.java => JobPostCompanyService.java} (98%) diff --git a/src/main/java/jikgong/domain/jobPost/dtos/JobPostListResponse.java b/src/main/java/jikgong/domain/jobPost/dtos/company/JobPostListResponse.java similarity index 87% rename from src/main/java/jikgong/domain/jobPost/dtos/JobPostListResponse.java rename to src/main/java/jikgong/domain/jobPost/dtos/company/JobPostListResponse.java index ee5eada..96b918f 100644 --- a/src/main/java/jikgong/domain/jobPost/dtos/JobPostListResponse.java +++ b/src/main/java/jikgong/domain/jobPost/dtos/company/JobPostListResponse.java @@ -1,13 +1,10 @@ -package jikgong.domain.jobPost.dtos; +package jikgong.domain.jobPost.dtos.company; -import jikgong.domain.apply.entity.ApplyStatus; import jikgong.domain.jobPost.entity.JobPost; -import jikgong.domain.jobPost.entity.Tech; import jikgong.domain.workDate.entity.WorkDate; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Getter; -import lombok.NoArgsConstructor; import java.time.LocalDateTime; diff --git a/src/main/java/jikgong/domain/jobPost/dtos/JobPostManageResponse.java b/src/main/java/jikgong/domain/jobPost/dtos/company/JobPostManageResponse.java similarity index 92% rename from src/main/java/jikgong/domain/jobPost/dtos/JobPostManageResponse.java rename to src/main/java/jikgong/domain/jobPost/dtos/company/JobPostManageResponse.java index 4ba8163..5435778 100644 --- a/src/main/java/jikgong/domain/jobPost/dtos/JobPostManageResponse.java +++ b/src/main/java/jikgong/domain/jobPost/dtos/company/JobPostManageResponse.java @@ -1,16 +1,14 @@ -package jikgong.domain.jobPost.dtos; +package jikgong.domain.jobPost.dtos.company; import jikgong.domain.jobPost.entity.JobPost; import jikgong.domain.jobPost.entity.Tech; import jikgong.domain.workDate.dtos.WorkDateResponse; -import jikgong.domain.workDate.entity.WorkDate; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Getter; import java.time.LocalDate; import java.time.LocalTime; -import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; diff --git a/src/main/java/jikgong/domain/jobPost/dtos/JobPostResponseForAcceptedApply.java b/src/main/java/jikgong/domain/jobPost/dtos/company/JobPostResponseForAcceptedApply.java similarity index 96% rename from src/main/java/jikgong/domain/jobPost/dtos/JobPostResponseForAcceptedApply.java rename to src/main/java/jikgong/domain/jobPost/dtos/company/JobPostResponseForAcceptedApply.java index a398786..c697414 100644 --- a/src/main/java/jikgong/domain/jobPost/dtos/JobPostResponseForAcceptedApply.java +++ b/src/main/java/jikgong/domain/jobPost/dtos/company/JobPostResponseForAcceptedApply.java @@ -1,4 +1,4 @@ -package jikgong.domain.jobPost.dtos; +package jikgong.domain.jobPost.dtos.company; import jikgong.domain.jobPost.entity.JobPost; import jikgong.domain.jobPost.entity.Tech; diff --git a/src/main/java/jikgong/domain/jobPost/dtos/JobPostResponseForPendingApply.java b/src/main/java/jikgong/domain/jobPost/dtos/company/JobPostResponseForPendingApply.java similarity index 91% rename from src/main/java/jikgong/domain/jobPost/dtos/JobPostResponseForPendingApply.java rename to src/main/java/jikgong/domain/jobPost/dtos/company/JobPostResponseForPendingApply.java index 6a2a25e..514f785 100644 --- a/src/main/java/jikgong/domain/jobPost/dtos/JobPostResponseForPendingApply.java +++ b/src/main/java/jikgong/domain/jobPost/dtos/company/JobPostResponseForPendingApply.java @@ -1,4 +1,4 @@ -package jikgong.domain.jobPost.dtos; +package jikgong.domain.jobPost.dtos.company; import jikgong.domain.jobPost.entity.JobPost; import jikgong.domain.jobPost.entity.Tech; @@ -6,8 +6,6 @@ import lombok.Builder; import lombok.Getter; -import java.time.LocalTime; - @AllArgsConstructor @Getter @Builder diff --git a/src/main/java/jikgong/domain/jobPost/dtos/JobPostSaveRequest.java b/src/main/java/jikgong/domain/jobPost/dtos/company/JobPostSaveRequest.java similarity index 98% rename from src/main/java/jikgong/domain/jobPost/dtos/JobPostSaveRequest.java rename to src/main/java/jikgong/domain/jobPost/dtos/company/JobPostSaveRequest.java index 2e899e6..7d7b4fb 100644 --- a/src/main/java/jikgong/domain/jobPost/dtos/JobPostSaveRequest.java +++ b/src/main/java/jikgong/domain/jobPost/dtos/company/JobPostSaveRequest.java @@ -1,4 +1,4 @@ -package jikgong.domain.jobPost.dtos; +package jikgong.domain.jobPost.dtos.company; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.constraints.NotEmpty; diff --git a/src/main/java/jikgong/domain/jobPost/dtos/TemporaryListResponse.java b/src/main/java/jikgong/domain/jobPost/dtos/company/TemporaryListResponse.java similarity index 95% rename from src/main/java/jikgong/domain/jobPost/dtos/TemporaryListResponse.java rename to src/main/java/jikgong/domain/jobPost/dtos/company/TemporaryListResponse.java index 5d6b58a..9b2133b 100644 --- a/src/main/java/jikgong/domain/jobPost/dtos/TemporaryListResponse.java +++ b/src/main/java/jikgong/domain/jobPost/dtos/company/TemporaryListResponse.java @@ -1,4 +1,4 @@ -package jikgong.domain.jobPost.dtos; +package jikgong.domain.jobPost.dtos.company; import jikgong.domain.jobPost.entity.JobPost; import jikgong.domain.jobPost.entity.Tech; diff --git a/src/main/java/jikgong/domain/jobPost/dtos/TemporarySaveRequest.java b/src/main/java/jikgong/domain/jobPost/dtos/company/TemporarySaveRequest.java similarity index 98% rename from src/main/java/jikgong/domain/jobPost/dtos/TemporarySaveRequest.java rename to src/main/java/jikgong/domain/jobPost/dtos/company/TemporarySaveRequest.java index 4cf3944..2a38440 100644 --- a/src/main/java/jikgong/domain/jobPost/dtos/TemporarySaveRequest.java +++ b/src/main/java/jikgong/domain/jobPost/dtos/company/TemporarySaveRequest.java @@ -1,4 +1,4 @@ -package jikgong.domain.jobPost.dtos; +package jikgong.domain.jobPost.dtos.company; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.constraints.NotEmpty; diff --git a/src/main/java/jikgong/domain/jobPost/dtos/TemporaryUpdateRequest.java b/src/main/java/jikgong/domain/jobPost/dtos/company/TemporaryUpdateRequest.java similarity index 98% rename from src/main/java/jikgong/domain/jobPost/dtos/TemporaryUpdateRequest.java rename to src/main/java/jikgong/domain/jobPost/dtos/company/TemporaryUpdateRequest.java index 655e74f..ade79a2 100644 --- a/src/main/java/jikgong/domain/jobPost/dtos/TemporaryUpdateRequest.java +++ b/src/main/java/jikgong/domain/jobPost/dtos/company/TemporaryUpdateRequest.java @@ -1,4 +1,4 @@ -package jikgong.domain.jobPost.dtos; +package jikgong.domain.jobPost.dtos.company; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.constraints.NotEmpty; diff --git a/src/main/java/jikgong/domain/jobPost/service/JobPostService.java b/src/main/java/jikgong/domain/jobPost/service/JobPostCompanyService.java similarity index 98% rename from src/main/java/jikgong/domain/jobPost/service/JobPostService.java rename to src/main/java/jikgong/domain/jobPost/service/JobPostCompanyService.java index dea4a32..eec1f9a 100644 --- a/src/main/java/jikgong/domain/jobPost/service/JobPostService.java +++ b/src/main/java/jikgong/domain/jobPost/service/JobPostCompanyService.java @@ -1,7 +1,6 @@ package jikgong.domain.jobPost.service; -import jikgong.domain.apply.repository.ApplyRepository; -import jikgong.domain.jobPost.dtos.*; +import jikgong.domain.jobPost.dtos.company.*; import jikgong.domain.jobPost.entity.JobPost; import jikgong.domain.jobPost.entity.JobPostStatus; import jikgong.domain.jobPost.repository.JobPostRepository; @@ -39,8 +38,7 @@ @RequiredArgsConstructor @Transactional @Slf4j -public class JobPostService { - private final ApplyRepository applyRepository; +public class JobPostCompanyService { private final JobPostRepository jobPostRepository; private final JobPostImageRepository jobPostImageRepository; private final JobPostImageService jobPostImageService;