Skip to content

Commit

Permalink
feat: 게시글 전체 투표 수 필드명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
gywns0417 committed Mar 19, 2024
1 parent 7f3cd56 commit 4a5c118
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/balancetalk/module/post/dto/PostResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class PostResponse {
private List<PostTagDto> postTags;

@Schema(description = "전체 투표 수", example = "15")
private int totalVotes;
private int totalVoteCount;

@JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
@Schema(description = "게시글 작성일", example = "2023-12-25T15:30:00")
Expand All @@ -75,7 +75,7 @@ public static PostResponse fromEntity(Post post, boolean myLike, boolean myBookm
.category(post.getCategory())
.balanceOptions(getBalanceOptions(post))
.postTags(getPostTags(post))
.totalVotes(getTotalVotes(post))
.totalVoteCount(getTotalVotes(post))
.createdAt(post.getCreatedAt())
.createdBy(post.getMember().getNickname())
.build();
Expand Down

0 comments on commit 4a5c118

Please sign in to comment.