From 39dc81cc01f7211d8874a1483f16441a32628124 Mon Sep 17 00:00:00 2001 From: gywns0417 Date: Thu, 14 Mar 2024 17:08:46 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EA=B2=8C=EC=8B=9C=EA=B8=80=20=EC=9D=91?= =?UTF-8?q?=EB=8B=B5=20=EC=8B=9C=20balanceOptionId=20=EB=B0=98=ED=99=98=20?= =?UTF-8?q?=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/balancetalk/module/post/dto/BalanceOptionDto.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/balancetalk/module/post/dto/BalanceOptionDto.java b/src/main/java/balancetalk/module/post/dto/BalanceOptionDto.java index a9e78dbc4..ce4b91f2c 100644 --- a/src/main/java/balancetalk/module/post/dto/BalanceOptionDto.java +++ b/src/main/java/balancetalk/module/post/dto/BalanceOptionDto.java @@ -15,6 +15,9 @@ @AllArgsConstructor public class BalanceOptionDto { + @Schema(description = "선택지 id", example = "1") + private Long balanceOptionId; + @Schema(description = "선택지 제목", example = "선택지 제목1") private String title; @@ -36,6 +39,7 @@ public BalanceOption toEntity(@Nullable File image) { public static BalanceOptionDto fromEntity(BalanceOption balanceOption) { BalanceOptionDtoBuilder builder = BalanceOptionDto.builder() + .balanceOptionId(balanceOption.getId()) .title(balanceOption.getTitle()) .description(balanceOption.getDescription()); if (balanceOption.getFile() != null) {