Skip to content

Commit

Permalink
[MOA-493] 펀딩 상세조회시 비밀글 여부 추가 (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
shin-mallang authored Mar 1, 2024
1 parent c0f56ce commit ed2043e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import moa.funding.domain.Funding;
import moa.funding.domain.FundingParticipant;
import moa.funding.domain.FundingStatus;
import moa.funding.domain.MessageVisibility;
import moa.member.domain.Member;
import moa.product.domain.Product;

Expand Down Expand Up @@ -82,6 +83,9 @@ public record Participant(
@Schema(description = "메시지 내용", example = "형님이 보태준다")
String message,

@Schema(description = "메시지 공개여부")
MessageVisibility visibility,

@Schema(description = "메시지 작성 시간", example = "2024-11-02 12:00:01")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
LocalDateTime createAt
Expand All @@ -100,6 +104,7 @@ private static Participant of(
null,
null,
null,
PRIVATE,
participant.getCreatedDate()
);
}
Expand All @@ -114,6 +119,7 @@ private static Participant getParticipant(FundingParticipant participant, List<F
participant.getMember().getProfileImageUrl(),
participant.getFundingMessage().getId(),
participant.getFundingMessage().getContent(),
participant.getFundingMessage().getVisible(),
participant.getCreatedDate()
);
}
Expand Down

0 comments on commit ed2043e

Please sign in to comment.