From c355bf37bad8d4d16063bd6e41b09a8c372b9c1c Mon Sep 17 00:00:00 2001 From: Jeongho Date: Mon, 20 May 2024 00:36:52 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=ED=99=9C=EB=8F=99=20=EC=97=94=ED=8B=B0?= =?UTF-8?q?=ED=8B=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/activity/dto/response/ActivityDetailsRes.java | 3 +++ .../teame/backend/domain/activity/entity/Activity.java | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/meetup/teame/backend/domain/activity/dto/response/ActivityDetailsRes.java b/src/main/java/com/meetup/teame/backend/domain/activity/dto/response/ActivityDetailsRes.java index 4dee77e..c9c9333 100644 --- a/src/main/java/com/meetup/teame/backend/domain/activity/dto/response/ActivityDetailsRes.java +++ b/src/main/java/com/meetup/teame/backend/domain/activity/dto/response/ActivityDetailsRes.java @@ -23,6 +23,8 @@ public class ActivityDetailsRes { private String title; + private String description; + private String agency; private String agencyType; @@ -45,6 +47,7 @@ public static ActivityDetailsRes of(Activity activity) { return ActivityDetailsRes.builder() .id(activity.getId()) .title(activity.getTitle()) + .description(activity.getDescription()) .agency(activity.getAgency()) .agencyType(activity.getAgencyType().getDescription()) .location(activity.getLocation()) diff --git a/src/main/java/com/meetup/teame/backend/domain/activity/entity/Activity.java b/src/main/java/com/meetup/teame/backend/domain/activity/entity/Activity.java index 609b6a5..63ed6a7 100644 --- a/src/main/java/com/meetup/teame/backend/domain/activity/entity/Activity.java +++ b/src/main/java/com/meetup/teame/backend/domain/activity/entity/Activity.java @@ -26,6 +26,9 @@ public class Activity { @Comment("활동 제목") private String title; + @Comment("활동 설명") + private String description; + @Comment("활동 제공 기관") private String agency; @@ -65,9 +68,10 @@ public class Activity { @OneToOne(mappedBy = "activity", cascade = CascadeType.ALL) private GroupChatRoom groupChatRoom; - public static Activity of(String title, String location, LocalDateTime time, Long maxParticipants, List personalities, String imageUrl) { + public static Activity of(String title, String description, String location, LocalDateTime time, Long maxParticipants, List personalities, String imageUrl) { return Activity.builder() .title(title) + .description(description) .location(location) .time(time) .currentParticipants(0L)