From 9559b0c4dcd1ebe8bc2820ad5a447945c32a0374 Mon Sep 17 00:00:00 2001 From: singsangssong Date: Thu, 17 Oct 2024 20:52:33 +0900 Subject: [PATCH] refactor: missing dto data fix --- src/main/java/kr/tgwing/tech/project/dto/ProjectBriefDTO.java | 4 +++- .../kr/tgwing/tech/project/service/ProjectServiceImpl.java | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/kr/tgwing/tech/project/dto/ProjectBriefDTO.java b/src/main/java/kr/tgwing/tech/project/dto/ProjectBriefDTO.java index f5ae112..12bf87c 100644 --- a/src/main/java/kr/tgwing/tech/project/dto/ProjectBriefDTO.java +++ b/src/main/java/kr/tgwing/tech/project/dto/ProjectBriefDTO.java @@ -15,16 +15,18 @@ public class ProjectBriefDTO { private String title; private LocalDate start; private LocalDate end; + private String description; private String thumbnail; private String devStatus; private String devType; @Builder - public ProjectBriefDTO(Long id, String title, LocalDate start, LocalDate end, String thumbnail, String devStatus, String devType) { + public ProjectBriefDTO(Long id, String title, LocalDate start, LocalDate end, String description, String thumbnail, String devStatus, String devType) { this.id = id; this.title = title; this.start = start; this.end = end; + this.description = description; this.thumbnail = thumbnail; this.devStatus = devStatus; this.devType = devType; diff --git a/src/main/java/kr/tgwing/tech/project/service/ProjectServiceImpl.java b/src/main/java/kr/tgwing/tech/project/service/ProjectServiceImpl.java index cf617a0..0cc514f 100644 --- a/src/main/java/kr/tgwing/tech/project/service/ProjectServiceImpl.java +++ b/src/main/java/kr/tgwing/tech/project/service/ProjectServiceImpl.java @@ -129,6 +129,7 @@ public static ProjectBriefDTO entity2ProjectBriefDTO(Project project){ .title(project.getTitle()) .start(project.getStartDate()) .end(project.getEndDate()) + .description(project.getDescription()) .thumbnail(project.getThumbnail()) .devStatus(project.getDevStatus()) .devType(project.getDevType())