Skip to content

Commit

Permalink
[#153] feat: 모임 둘러보기 API 응답에 모임 모집시작시간 추가 (#154)
Browse files Browse the repository at this point in the history
- 모임 둘러보기 API 응답에 모집 시작시간(`startDate`) 추가
  • Loading branch information
rdd9223 authored and mikekks committed Apr 3, 2024
1 parent f8d8904 commit 810c497
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public class MeetingV2GetMeetingBannerResponseDto {
private LocalDateTime mStartDate;
/** 모임 활동 종료일 */
private LocalDateTime mEndDate;
/** 모임 모집 시작일 */
private LocalDateTime startDate;
/** 모임 인원 */
private Integer capacity;
/** 최근 활동 일자 */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ public MeetingV2GetAllMeetingByOrgUserDto getAllMeetingByOrgUser(
userJoinedList = Stream
.concat(existUser.getMeetings().stream(),
applyRepository.findAllByUserIdAndStatus(existUser.getId(), EnApplyStatus.APPROVE)
.stream()
.map(apply -> apply.getMeeting()))
.stream().map(apply -> apply.getMeeting()))
.map(meeting -> MeetingV2GetAllMeetingByOrgUserMeetingDto.of(meeting.getId(),
checkMeetingLeader(meeting, existUser.getId()), meeting.getTitle(),
meeting.getImageURL().get(0).getUrl(), meeting.getCategory().getValue(),
Expand Down Expand Up @@ -89,9 +88,10 @@ public List<MeetingV2GetMeetingBannerResponseDto> getMeetingBanner() {

return MeetingV2GetMeetingBannerResponseDto.of(meeting.getId(), meeting.getUserId(),
meeting.getTitle(), meeting.getCategory(), meeting.getImageURL(),
meeting.getMStartDate(), meeting.getMEndDate(), meeting.getCapacity(),
recentActivityDate, meeting.getTargetActiveGeneration(), meeting.getJoinableParts(),
applicantCount, appliedUserCount, meetingLeader, meeting.getMeetingStatus());
meeting.getStartDate(), meeting.getMStartDate(), meeting.getMEndDate(),
meeting.getCapacity(), recentActivityDate, meeting.getTargetActiveGeneration(),
meeting.getJoinableParts(), applicantCount, appliedUserCount, meetingLeader,
meeting.getMeetingStatus());
}).toList();

return meetingBanners;
Expand Down

0 comments on commit 810c497

Please sign in to comment.