From 810c497399a8396e11cfac4aeb3e2ca40efd8045 Mon Sep 17 00:00:00 2001 From: YeongWoooo Date: Thu, 4 Apr 2024 01:43:27 +0900 Subject: [PATCH] =?UTF-8?q?[#153]=20feat:=20=EB=AA=A8=EC=9E=84=20=EB=91=98?= =?UTF-8?q?=EB=9F=AC=EB=B3=B4=EA=B8=B0=20API=20=EC=9D=91=EB=8B=B5=EC=97=90?= =?UTF-8?q?=20=EB=AA=A8=EC=9E=84=20=EB=AA=A8=EC=A7=91=EC=8B=9C=EC=9E=91?= =?UTF-8?q?=EC=8B=9C=EA=B0=84=20=EC=B6=94=EA=B0=80=20(#154)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 모임 둘러보기 API 응답에 모집 시작시간(`startDate`) 추가 --- .../response/MeetingV2GetMeetingBannerResponseDto.java | 2 ++ .../main/meeting/v2/service/MeetingV2ServiceImpl.java | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/main/src/main/java/org/sopt/makers/crew/main/meeting/v2/dto/response/MeetingV2GetMeetingBannerResponseDto.java b/main/src/main/java/org/sopt/makers/crew/main/meeting/v2/dto/response/MeetingV2GetMeetingBannerResponseDto.java index 14e90f7c..fdca9ba7 100644 --- a/main/src/main/java/org/sopt/makers/crew/main/meeting/v2/dto/response/MeetingV2GetMeetingBannerResponseDto.java +++ b/main/src/main/java/org/sopt/makers/crew/main/meeting/v2/dto/response/MeetingV2GetMeetingBannerResponseDto.java @@ -35,6 +35,8 @@ public class MeetingV2GetMeetingBannerResponseDto { private LocalDateTime mStartDate; /** 모임 활동 종료일 */ private LocalDateTime mEndDate; + /** 모임 모집 시작일 */ + private LocalDateTime startDate; /** 모임 인원 */ private Integer capacity; /** 최근 활동 일자 */ diff --git a/main/src/main/java/org/sopt/makers/crew/main/meeting/v2/service/MeetingV2ServiceImpl.java b/main/src/main/java/org/sopt/makers/crew/main/meeting/v2/service/MeetingV2ServiceImpl.java index 6cd4a0b5..e4b22ae3 100644 --- a/main/src/main/java/org/sopt/makers/crew/main/meeting/v2/service/MeetingV2ServiceImpl.java +++ b/main/src/main/java/org/sopt/makers/crew/main/meeting/v2/service/MeetingV2ServiceImpl.java @@ -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(), @@ -89,9 +88,10 @@ public List 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;