diff --git a/src/main/java/com/basic/study/dto/TodoRes.java b/src/main/java/com/basic/study/dto/TodoRes.java index d8ea0dc..7784786 100644 --- a/src/main/java/com/basic/study/dto/TodoRes.java +++ b/src/main/java/com/basic/study/dto/TodoRes.java @@ -6,13 +6,11 @@ import lombok.Getter; import java.time.LocalDate; -import java.time.LocalDateTime; @Getter @Builder @AllArgsConstructor(access = AccessLevel.PRIVATE) public class TodoRes { - private Long memberId; private Long todoId; private String content; private LocalDate deadLine; diff --git a/src/main/java/com/basic/study/service/TodoService.java b/src/main/java/com/basic/study/service/TodoService.java index 05d26e0..33fa322 100644 --- a/src/main/java/com/basic/study/service/TodoService.java +++ b/src/main/java/com/basic/study/service/TodoService.java @@ -28,7 +28,6 @@ public TodoRes createTodo(TodoReq todoReq) { todoRepository.save(todo); return TodoRes.builder() - .memberId(todo.getMember().getId()) .todoId(todo.getId()) .content(todo.getContent()) .deadLine(todo.getDeadLine()) @@ -41,7 +40,6 @@ public List readTodoes(Long memberId) { for (Todo todo : todoList) { TodoRes todoRes = TodoRes.builder() - .memberId(todo.getMember().getId()) .todoId(todo.getId()) .content(todo.getContent()) .deadLine(todo.getDeadLine()) @@ -57,7 +55,6 @@ public TodoRes updateTodo(Long todoId, TodoUpdateReq todoUpdateReq) { todo.update(todoUpdateReq); todoRepository.save(todo); return TodoRes.builder() - .memberId(todo.getMember().getId()) .todoId(todo.getId()) .content(todo.getContent()) .deadLine(todo.getDeadLine())