Skip to content

Commit

Permalink
refactor : 테이스팅 노트 썸네일 조회
Browse files Browse the repository at this point in the history
  • Loading branch information
imenuuu committed Nov 6, 2024
1 parent 0701ecd commit 97828cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ private TastingNoteResponse.TastingNoteListDTO toTastingNoteListDTO(TastingNote
.tastingNoteNo(tastingNoteNo.get(result.getId()))
.userNickname(result.getUser() != null ? result.getUser().getNickName() : "알 수 없음")
.noteDate(result.getCreatedAt().toLocalDate().toString())
.thumbnail(result.getTastingNoteImages().size() > 0 ? result.getTastingNoteImages().get(0).getUrl() : null)
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ public static class TastingNoteListDTO {
private String userNickname;
@Schema(description = "노트 생성 날짜")
private String noteDate;
@Schema(description = "썸네일")
private String thumbnail;
}

@NoArgsConstructor
Expand Down

0 comments on commit 97828cd

Please sign in to comment.