From 97828cdca99465c2a886f0fb6e75428b6e6bc734 Mon Sep 17 00:00:00 2001 From: imenuuu Date: Wed, 6 Nov 2024 23:58:16 +0900 Subject: [PATCH] =?UTF-8?q?refactor=20:=20=ED=85=8C=EC=9D=B4=EC=8A=A4?= =?UTF-8?q?=ED=8C=85=20=EB=85=B8=ED=8A=B8=20=EC=8D=B8=EB=84=A4=EC=9D=BC=20?= =?UTF-8?q?=EC=A1=B0=ED=9A=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wineyapi/tastingNote/convertor/TastingNoteConvertor.java | 1 + .../example/wineyapi/tastingNote/dto/TastingNoteResponse.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Winey-API/src/main/java/com/example/wineyapi/tastingNote/convertor/TastingNoteConvertor.java b/Winey-API/src/main/java/com/example/wineyapi/tastingNote/convertor/TastingNoteConvertor.java index 23677ed..169bc46 100644 --- a/Winey-API/src/main/java/com/example/wineyapi/tastingNote/convertor/TastingNoteConvertor.java +++ b/Winey-API/src/main/java/com/example/wineyapi/tastingNote/convertor/TastingNoteConvertor.java @@ -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(); } diff --git a/Winey-API/src/main/java/com/example/wineyapi/tastingNote/dto/TastingNoteResponse.java b/Winey-API/src/main/java/com/example/wineyapi/tastingNote/dto/TastingNoteResponse.java index cbffc31..34509c6 100644 --- a/Winey-API/src/main/java/com/example/wineyapi/tastingNote/dto/TastingNoteResponse.java +++ b/Winey-API/src/main/java/com/example/wineyapi/tastingNote/dto/TastingNoteResponse.java @@ -38,6 +38,8 @@ public static class TastingNoteListDTO { private String userNickname; @Schema(description = "노트 생성 날짜") private String noteDate; + @Schema(description = "썸네일") + private String thumbnail; } @NoArgsConstructor