Skip to content

Commit

Permalink
[Refactor] TodoRes 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jiyunio committed Nov 14, 2024
1 parent 469790a commit 1590070
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/main/java/com/basic/study/dto/TodoRes.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/com/basic/study/service/TodoService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -41,7 +40,6 @@ public List<TodoRes> readTodoes(Long memberId) {

for (Todo todo : todoList) {
TodoRes todoRes = TodoRes.builder()
.memberId(todo.getMember().getId())
.todoId(todo.getId())
.content(todo.getContent())
.deadLine(todo.getDeadLine())
Expand All @@ -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())
Expand Down

0 comments on commit 1590070

Please sign in to comment.