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 = "재구매 유무")