From 9a156a0176ea6a8f3d03dc3f618d4fe3f5923ece Mon Sep 17 00:00:00 2001 From: swa07016 Date: Sun, 10 Mar 2024 15:58:16 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=ED=85=8C=EC=9D=B4=EC=8A=A4=ED=8C=85=20?= =?UTF-8?q?=EB=85=B8=ED=8A=B8=20=EC=9D=91=EB=8B=B5=20varietal=20=ED=95=84?= =?UTF-8?q?=EB=93=9C=20=EC=B6=94=EA=B0=80?= 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 7ca15aa3..274fccee 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 @@ -281,6 +281,7 @@ private TastingNoteResponse.TastingNoteListDTO toTastingNoteListDTO(TastingNote .noteId(result.getId()) .wineName(result.getWine().getName()) .country(result.getWine().getCountry()) + .varietal(result.getWine().getVarietal()) .starRating(result.getStarRating()) .buyAgain(result.getBuyAgain()) .wineType(result.getWine().getType()) 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 e395a00e..7230d235 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 @@ -21,6 +21,8 @@ public static class TastingNoteListDTO { private String wineName; @Schema(description = "와인 생산지") private Country country; + @Schema(description = "품종") + private String varietal; @Schema(description = "평점") private Integer starRating; @Schema(description = "재구매 유무")