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; }