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) {