From df2b33171e1ba7cc66550f77345a5f9e4db466c5 Mon Sep 17 00:00:00 2001 From: jisu <98259433+jisu-jeong0@users.noreply.github.com> Date: Thu, 11 Jan 2024 04:48:37 +0900 Subject: [PATCH] =?UTF-8?q?Feat:=20=ED=94=84=EB=A1=9C=EC=A0=9D=ED=8A=B8=20?= =?UTF-8?q?=EC=A1=B0=ED=9A=8C=20=EC=8B=9C=20=EC=9D=91=EB=8B=B5=20=EA=B0=92?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/project_post/application/ProjectPostService.java | 6 ++++++ .../domain/project_post/dto/response/ProjectDetailRes.java | 2 ++ .../ideac/domain/project_post/dto/response/ProjectRes.java | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/ideac-user/src/main/java/depth/main/ideac/domain/project_post/application/ProjectPostService.java b/ideac-user/src/main/java/depth/main/ideac/domain/project_post/application/ProjectPostService.java index 91cd8e2..3236966 100644 --- a/ideac-user/src/main/java/depth/main/ideac/domain/project_post/application/ProjectPostService.java +++ b/ideac-user/src/main/java/depth/main/ideac/domain/project_post/application/ProjectPostService.java @@ -92,6 +92,8 @@ public Page getAllProjects(int page, int size, String sortBy) { .team(projectPost.getTeam()) .title(projectPost.getTitle()) .simpleDescription(projectPost.getSimpleDescription()) + .hits(projectPost.getHits()) + .createdAt(projectPost.getCreatedAt()) .thumbnail(thumbnail) .build(); }) @@ -129,6 +131,8 @@ public Page getProjectsByKeyword(int page, int size, String sortBy, .team(projectPost.getTeam()) .title(projectPost.getTitle()) .simpleDescription(projectPost.getSimpleDescription()) + .hits(projectPost.getHits()) + .createdAt(projectPost.getCreatedAt()) .thumbnail(thumbnail) .build(); }) @@ -160,6 +164,8 @@ public ProjectDetailRes getProjectDetail(Long projectId) { .booleanWeb(projectPost.isBooleanWeb()) .booleanApp(projectPost.isBooleanApp()) .booleanAi(projectPost.isBooleanAi()) + .hits(projectPost.getHits()) + .createdAt(projectPost.getCreatedAt()) .thumbnail(thumbnailPath) .otherImages(otherImagePaths) .build(); diff --git a/ideac-user/src/main/java/depth/main/ideac/domain/project_post/dto/response/ProjectDetailRes.java b/ideac-user/src/main/java/depth/main/ideac/domain/project_post/dto/response/ProjectDetailRes.java index 204d09c..b3e61e7 100644 --- a/ideac-user/src/main/java/depth/main/ideac/domain/project_post/dto/response/ProjectDetailRes.java +++ b/ideac-user/src/main/java/depth/main/ideac/domain/project_post/dto/response/ProjectDetailRes.java @@ -7,6 +7,7 @@ import jakarta.validation.constraints.NotBlank; import lombok.*; +import java.time.LocalDateTime; import java.util.List; @Builder @@ -30,4 +31,5 @@ public class ProjectDetailRes { private boolean booleanAi; private String thumbnail; private List otherImages; + private LocalDateTime createdAt; } diff --git a/ideac-user/src/main/java/depth/main/ideac/domain/project_post/dto/response/ProjectRes.java b/ideac-user/src/main/java/depth/main/ideac/domain/project_post/dto/response/ProjectRes.java index 1a6bdff..bb6e00d 100644 --- a/ideac-user/src/main/java/depth/main/ideac/domain/project_post/dto/response/ProjectRes.java +++ b/ideac-user/src/main/java/depth/main/ideac/domain/project_post/dto/response/ProjectRes.java @@ -2,6 +2,8 @@ import lombok.*; +import java.time.LocalDateTime; + @Builder @Getter @NoArgsConstructor(access = AccessLevel.PROTECTED) @@ -15,4 +17,6 @@ public class ProjectRes { private String title; private String simpleDescription; private String thumbnail; + private Long hits; + private LocalDateTime createdAt; }