Skip to content

Commit

Permalink
chore: approvedCount 필드 추가 (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekks authored Oct 30, 2024
1 parent 0534d13 commit e15f8d8
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,14 @@ public record MeetingV2GetCreatedMeetingByUserResponseDto(
@Schema(description = "모임장 정보", example = "")
@NotNull
MeetingCreatorDto user,
@Schema(description = "신청 수", example = "7")
@Schema(description = "[DEPRECATED] TODO: FE에서 수정 완료 후 삭제 ", example = "7")
@NotNull
int appliedCount
int appliedCount,
@Schema(description = "신청자 수", example = "7")
@NotNull
int approvedCount
) {
public static MeetingV2GetCreatedMeetingByUserResponseDto of(Meeting meeting, boolean isCoLeader, int appliedCount,
public static MeetingV2GetCreatedMeetingByUserResponseDto of(Meeting meeting, boolean isCoLeader, int approvedCount,
LocalDateTime now) {
MeetingCreatorDto creatorDto = MeetingCreatorDto.of(meeting.getUser());
boolean canJoinOnlyActiveGeneration = meeting.getTargetActiveGeneration() == CrewConst.ACTIVE_GENERATION
Expand All @@ -82,7 +85,7 @@ public static MeetingV2GetCreatedMeetingByUserResponseDto of(Meeting meeting, bo
meeting.getTargetActiveGeneration(), meeting.getJoinableParts(), meeting.getCategory().getValue(),
canJoinOnlyActiveGeneration, meeting.getMeetingStatus(now), isCoLeader, meeting.getImageURL(),
meeting.getIsMentorNeeded(), meeting.getMStartDate(), meeting.getMEndDate(), meeting.getCapacity(),
creatorDto, appliedCount);
creatorDto, approvedCount, approvedCount);
}

}

0 comments on commit e15f8d8

Please sign in to comment.