Skip to content

Commit

Permalink
feature: 피드 사용자 닉네임 프로필 정보 추가 및 미션 이름 추가 (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwanok authored Aug 17, 2024
1 parent 5b6b8cc commit 5337054
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@

public record FeedContentGetResponse(
@Schema(description = "미션 ID", example = "1") Long missionId,
@Schema(description = "미션 제목", example = "산책하기") String missionTitle,
@Schema(description = "미션 기록 ID", example = "1") Long missionRecordId,
@Schema(description = "작성자 ID", example = "1") Long authorId,
@Schema(description = "작성자 프로필 닉네임") String authorProfileNickname,
@Schema(description = "작성자 프로필 이미지 URL") String authorProfileImageUrl,
@Schema(description = "미션 기록 이미지 URL", example = "example.jpeg")
String missionRecordImageUrl,
@Schema(description = "미션 기록 생성일") LocalDate createdDate,
Expand All @@ -16,8 +19,11 @@ public record FeedContentGetResponse(
public static FeedContentGetResponse from(FindFeedDto missionRecord) {
return new FeedContentGetResponse(
missionRecord.mission().getId(),
missionRecord.mission().getTitle(),
missionRecord.missionRecord().getId(),
missionRecord.author().getId(),
missionRecord.author().getProfile().getNickname(),
missionRecord.author().getProfile().getProfileImageUrl(),
missionRecord.missionRecord().getImageUrl(),
missionRecord.missionRecord().getCreatedAt().toLocalDate(),
missionRecord.totalBoostCount(),
Expand Down

0 comments on commit 5337054

Please sign in to comment.