From 9cc34886df6360bd0d5c5f8f9c57e5e31ef8d1c5 Mon Sep 17 00:00:00 2001 From: threeony Date: Fri, 2 Feb 2024 23:07:07 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20on=20API=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/on/resolution/converter/ResolutionConverter.java | 1 - .../onnoff/onnoff/domain/on/worklog/dto/WorklogRequest.java | 1 - .../onnoff/domain/on/worklog/repository/WorklogRepository.java | 1 - .../com/onnoff/onnoff/domain/on/worklog/service/OnService.java | 2 +- .../onnoff/onnoff/domain/on/worklog/service/OnServiceImpl.java | 3 --- .../onnoff/domain/on/worklog/service/WorklogService.java | 3 --- .../onnoff/domain/on/worklog/service/WorklogServiceImpl.java | 2 -- 7 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/main/java/com/onnoff/onnoff/domain/on/resolution/converter/ResolutionConverter.java b/src/main/java/com/onnoff/onnoff/domain/on/resolution/converter/ResolutionConverter.java index 0c7b4d2..1f01e44 100644 --- a/src/main/java/com/onnoff/onnoff/domain/on/resolution/converter/ResolutionConverter.java +++ b/src/main/java/com/onnoff/onnoff/domain/on/resolution/converter/ResolutionConverter.java @@ -5,7 +5,6 @@ import com.onnoff.onnoff.domain.on.resolution.entity.Resolution; import java.time.LocalDate; -import java.time.LocalDateTime; import java.util.List; import java.util.stream.Collectors; diff --git a/src/main/java/com/onnoff/onnoff/domain/on/worklog/dto/WorklogRequest.java b/src/main/java/com/onnoff/onnoff/domain/on/worklog/dto/WorklogRequest.java index 550c1f6..e4a734c 100644 --- a/src/main/java/com/onnoff/onnoff/domain/on/worklog/dto/WorklogRequest.java +++ b/src/main/java/com/onnoff/onnoff/domain/on/worklog/dto/WorklogRequest.java @@ -1,6 +1,5 @@ package com.onnoff.onnoff.domain.on.worklog.dto; -import com.fasterxml.jackson.annotation.JsonFormat; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.PastOrPresent; import jakarta.validation.constraints.Size; diff --git a/src/main/java/com/onnoff/onnoff/domain/on/worklog/repository/WorklogRepository.java b/src/main/java/com/onnoff/onnoff/domain/on/worklog/repository/WorklogRepository.java index 2811d58..8b3def7 100644 --- a/src/main/java/com/onnoff/onnoff/domain/on/worklog/repository/WorklogRepository.java +++ b/src/main/java/com/onnoff/onnoff/domain/on/worklog/repository/WorklogRepository.java @@ -1,6 +1,5 @@ package com.onnoff.onnoff.domain.on.worklog.repository; -import com.onnoff.onnoff.domain.on.resolution.entity.Resolution; import com.onnoff.onnoff.domain.on.worklog.entity.Worklog; import com.onnoff.onnoff.domain.user.User; import org.springframework.data.jpa.repository.JpaRepository; diff --git a/src/main/java/com/onnoff/onnoff/domain/on/worklog/service/OnService.java b/src/main/java/com/onnoff/onnoff/domain/on/worklog/service/OnService.java index 73a9be5..73da86b 100644 --- a/src/main/java/com/onnoff/onnoff/domain/on/worklog/service/OnService.java +++ b/src/main/java/com/onnoff/onnoff/domain/on/worklog/service/OnService.java @@ -5,5 +5,5 @@ import java.time.LocalDate; public interface OnService { - public OnResponse.OnViewDTO getOn(LocalDate date); + OnResponse.OnViewDTO getOn(LocalDate date); } diff --git a/src/main/java/com/onnoff/onnoff/domain/on/worklog/service/OnServiceImpl.java b/src/main/java/com/onnoff/onnoff/domain/on/worklog/service/OnServiceImpl.java index 0ef8eae..e3f1cf2 100644 --- a/src/main/java/com/onnoff/onnoff/domain/on/worklog/service/OnServiceImpl.java +++ b/src/main/java/com/onnoff/onnoff/domain/on/worklog/service/OnServiceImpl.java @@ -1,7 +1,5 @@ package com.onnoff.onnoff.domain.on.worklog.service; -import com.onnoff.onnoff.apiPayload.code.status.ErrorStatus; -import com.onnoff.onnoff.apiPayload.exception.GeneralException; import com.onnoff.onnoff.auth.UserContext; import com.onnoff.onnoff.domain.on.resolution.entity.Resolution; import com.onnoff.onnoff.domain.on.resolution.repository.ResolutionRepository; @@ -23,7 +21,6 @@ @Transactional @RequiredArgsConstructor public class OnServiceImpl implements OnService{ - private final UserRepository userRepository; private final ResolutionRepository resolutionRepository; private final WorklogRepository worklogRepository; diff --git a/src/main/java/com/onnoff/onnoff/domain/on/worklog/service/WorklogService.java b/src/main/java/com/onnoff/onnoff/domain/on/worklog/service/WorklogService.java index 0ba388d..89d8f53 100644 --- a/src/main/java/com/onnoff/onnoff/domain/on/worklog/service/WorklogService.java +++ b/src/main/java/com/onnoff/onnoff/domain/on/worklog/service/WorklogService.java @@ -3,9 +3,6 @@ import com.onnoff.onnoff.domain.on.worklog.dto.WorklogRequest; import com.onnoff.onnoff.domain.on.worklog.entity.Worklog; -import java.time.LocalDate; -import java.util.List; - public interface WorklogService { Worklog addWorklog(WorklogRequest.AddWorklogDTO request); diff --git a/src/main/java/com/onnoff/onnoff/domain/on/worklog/service/WorklogServiceImpl.java b/src/main/java/com/onnoff/onnoff/domain/on/worklog/service/WorklogServiceImpl.java index 3d392f3..4f4b6e7 100644 --- a/src/main/java/com/onnoff/onnoff/domain/on/worklog/service/WorklogServiceImpl.java +++ b/src/main/java/com/onnoff/onnoff/domain/on/worklog/service/WorklogServiceImpl.java @@ -1,7 +1,6 @@ package com.onnoff.onnoff.domain.on.worklog.service; import com.onnoff.onnoff.apiPayload.code.status.ErrorStatus; -import com.onnoff.onnoff.apiPayload.exception.GeneralException; import com.onnoff.onnoff.apiPayload.exception.handler.WorklogHandler; import com.onnoff.onnoff.auth.UserContext; import com.onnoff.onnoff.domain.on.worklog.converter.WorklogConverter; @@ -20,7 +19,6 @@ @Transactional @RequiredArgsConstructor public class WorklogServiceImpl implements WorklogService{ - private final UserRepository userRepository; private final WorklogRepository worklogRepository; @Override