From b09ce0c8821c489f36b4aecf55b90c3abddf02cc Mon Sep 17 00:00:00 2001 From: teho Date: Fri, 19 Apr 2024 21:05:08 +0900 Subject: [PATCH] =?UTF-8?q?[#22]=20feat:=20hashtag=20=EC=9E=84=EC=8B=9C=20?= =?UTF-8?q?=EB=8D=B0=EC=9D=B4=ED=84=B0=20=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/jeju/nanaland/domain/nana/dto/NanaResponse.java | 2 ++ .../com/jeju/nanaland/domain/nana/service/NanaService.java | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/src/main/java/com/jeju/nanaland/domain/nana/dto/NanaResponse.java b/src/main/java/com/jeju/nanaland/domain/nana/dto/NanaResponse.java index ac17e81f..29ba20db 100644 --- a/src/main/java/com/jeju/nanaland/domain/nana/dto/NanaResponse.java +++ b/src/main/java/com/jeju/nanaland/domain/nana/dto/NanaResponse.java @@ -87,6 +87,8 @@ public static class NanaDetail { public List additionalInfoList; + public List hashtags; + } @Data diff --git a/src/main/java/com/jeju/nanaland/domain/nana/service/NanaService.java b/src/main/java/com/jeju/nanaland/domain/nana/service/NanaService.java index c8b1269d..3fe6369a 100644 --- a/src/main/java/com/jeju/nanaland/domain/nana/service/NanaService.java +++ b/src/main/java/com/jeju/nanaland/domain/nana/service/NanaService.java @@ -67,6 +67,11 @@ public NanaResponse.NanaDetailDto getNanaDetail(Long id) { List nanaDetails = new ArrayList<>(); for (NanaContent nanaContent : nanaContentList) { + + // TODO hashtag 기능 구현 시 꼭 수정하기!!!! + List tmp = new ArrayList<>(); + tmp.add("ex1"); + tmp.add("ex2"); nanaDetails.add( NanaResponse.NanaDetail.builder() .number(nanaContent.getNumber()) @@ -75,6 +80,7 @@ public NanaResponse.NanaDetailDto getNanaDetail(Long id) { .imageUrl(nanaContent.getImageFile().getOriginUrl()) .content(nanaContent.getContent()) .additionalInfoList(getAdditionalInfoFromNanaContentEntity(nanaContent)) + .hashtags(tmp) .build()); }