Skip to content

Commit

Permalink
fix(PostDetailResponseDto): Lombok getter에서 isBlockedPost를 생략 후 직접 ge…
Browse files Browse the repository at this point in the history
…tter 구현 (#398)
  • Loading branch information
hoonyworld authored Sep 22, 2024
1 parent 43a2492 commit e85d400
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;

Expand Down Expand Up @@ -63,6 +64,7 @@ public class PostDetailResponseDto {

@Schema(description = "차단된 유저의 게시물인지 여부", example = "false")
@NotNull
@Getter(AccessLevel.NONE)
private final boolean isBlockedPost;

public static PostDetailResponseDto of(PostDetailBaseDto postDetail,
Expand All @@ -72,4 +74,8 @@ public static PostDetailResponseDto of(PostDetailBaseDto postDetail,
postDetail.getIsLiked(), postDetail.getViewCount(), postDetail.getCommentCount(), postDetail.getMeeting(),
postTopCommenterThumbnails.getCommenterThumbnails(), isBlockedPost);
}

public boolean getIsBlockedPost() {
return isBlockedPost;
}
}

0 comments on commit e85d400

Please sign in to comment.