From 714667ac74dcaea53923eaa387fe589c82862e7a Mon Sep 17 00:00:00 2001 From: jimmy0006 Date: Tue, 9 Apr 2024 21:06:22 +0900 Subject: [PATCH] fix:add memberloginIds in activity response --- .../poolc/api/activity/dto/GetActivitiesResponse.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/poolc/api/activity/dto/GetActivitiesResponse.java b/src/main/java/org/poolc/api/activity/dto/GetActivitiesResponse.java index e470b4f8..bb490337 100644 --- a/src/main/java/org/poolc/api/activity/dto/GetActivitiesResponse.java +++ b/src/main/java/org/poolc/api/activity/dto/GetActivitiesResponse.java @@ -18,9 +18,9 @@ public class GetActivitiesResponse { private final Long capacity; private final boolean isSeminar; private final Long hour; - private final Long joinedMemberCount; + private final List memberLoginIds; - public GetActivitiesResponse(Long id, String title, HostResponse host, LocalDate startDate, boolean available, List tags, Long capacity, boolean isSeminar, Long hour, Long joinedMemberCount) { + public GetActivitiesResponse(Long id, String title, HostResponse host, LocalDate startDate, boolean available, List tags, Long capacity, boolean isSeminar, Long hour,List memberLoginIds) { this.id = id; this.title = title; this.host = host; @@ -30,8 +30,8 @@ public GetActivitiesResponse(Long id, String title, HostResponse host, LocalDate this.capacity = capacity; this.isSeminar = isSeminar; this.hour = hour; - this.joinedMemberCount= joinedMemberCount; - } + this.memberLoginIds = memberLoginIds; +} public static GetActivitiesResponse of(Activity activity) { List tags = activity.getTags().stream() @@ -40,7 +40,7 @@ public static GetActivitiesResponse of(Activity activity) { HostResponse host = HostResponse.of(activity.getHost()); return new GetActivitiesResponse(activity.getId(), activity.getTitle(), host, activity.getStartDate(), activity.getAvailable(), - tags, activity.getCapacity(), activity.getIsSeminar(), activity.getHour(), Long.valueOf(activity.getMemberLoginIDs().size()) + tags, activity.getCapacity(), activity.getIsSeminar(), activity.getHour(), activity.getMemberLoginIDs() ); } }