Skip to content

Commit

Permalink
refactor: on API 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
threeony committed Feb 2, 2024
1 parent b91ed0a commit 9cc3488
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
import java.time.LocalDate;

public interface OnService {
public OnResponse.OnViewDTO getOn(LocalDate date);
OnResponse.OnViewDTO getOn(LocalDate date);
}
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -23,7 +21,6 @@
@Transactional
@RequiredArgsConstructor
public class OnServiceImpl implements OnService{
private final UserRepository userRepository;
private final ResolutionRepository resolutionRepository;
private final WorklogRepository worklogRepository;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -20,7 +19,6 @@
@Transactional
@RequiredArgsConstructor
public class WorklogServiceImpl implements WorklogService{
private final UserRepository userRepository;
private final WorklogRepository worklogRepository;

@Override
Expand Down

0 comments on commit 9cc3488

Please sign in to comment.