Skip to content

Commit

Permalink
[#22] feat: hashtag 임시 데이터 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
Te-H0 committed Apr 19, 2024
1 parent 4f3fab5 commit b09ce0c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ public static class NanaDetail {

public List<NanaAdditionalInfo> additionalInfoList;

public List<String> hashtags;

}

@Data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ public NanaResponse.NanaDetailDto getNanaDetail(Long id) {
List<NanaResponse.NanaDetail> nanaDetails = new ArrayList<>();

for (NanaContent nanaContent : nanaContentList) {

// TODO hashtag 기능 구현 시 꼭 수정하기!!!!
List<String> tmp = new ArrayList<>();
tmp.add("ex1");
tmp.add("ex2");
nanaDetails.add(
NanaResponse.NanaDetail.builder()
.number(nanaContent.getNumber())
Expand All @@ -75,6 +80,7 @@ public NanaResponse.NanaDetailDto getNanaDetail(Long id) {
.imageUrl(nanaContent.getImageFile().getOriginUrl())
.content(nanaContent.getContent())
.additionalInfoList(getAdditionalInfoFromNanaContentEntity(nanaContent))
.hashtags(tmp)
.build());

}
Expand Down

0 comments on commit b09ce0c

Please sign in to comment.