Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

게시글 조회 시 balanceOptionId를 응답하도록 구현 완료 #195

Merged
merged 1 commit into from
Mar 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
@AllArgsConstructor
public class BalanceOptionDto {

@Schema(description = "선택지 id", example = "1")
private Long balanceOptionId;

@Schema(description = "선택지 제목", example = "선택지 제목1")
private String title;

Expand All @@ -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) {
Expand Down