From d1abe545cfb31f5e0a2eea355eeab4cac6ecd08e Mon Sep 17 00:00:00 2001 From: mybloom Date: Mon, 26 Dec 2022 23:08:09 +0900 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=20::=20notification=20=EB=A1=9C?= =?UTF-8?q?=EC=A7=81=EC=9A=A9=20Group=EC=9D=91=EB=8B=B5=20DTO=20=EC=82=AC?= =?UTF-8?q?=EC=9A=A9=ED=95=98=EB=8A=94=20=EA=B2=83=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dto/response/QueryNotificationListResponseElement.java | 4 ++-- .../domain/notification/service/NotificationService.java | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/io/github/depromeet/knockknockbackend/domain/notification/presentation/dto/response/QueryNotificationListResponseElement.java b/src/main/java/io/github/depromeet/knockknockbackend/domain/notification/presentation/dto/response/QueryNotificationListResponseElement.java index 8f2255e4..d14d5793 100644 --- a/src/main/java/io/github/depromeet/knockknockbackend/domain/notification/presentation/dto/response/QueryNotificationListResponseElement.java +++ b/src/main/java/io/github/depromeet/knockknockbackend/domain/notification/presentation/dto/response/QueryNotificationListResponseElement.java @@ -1,7 +1,7 @@ package io.github.depromeet.knockknockbackend.domain.notification.presentation.dto.response; -import io.github.depromeet.knockknockbackend.domain.group.presentation.dto.response.GroupBriefInfoDto; +import io.github.depromeet.knockknockbackend.domain.group.presentation.dto.response.GroupInfoForNotificationDto; import java.time.LocalDateTime; import lombok.Builder; import lombok.Getter; @@ -15,6 +15,6 @@ public class QueryNotificationListResponseElement { private String imageUrl; private LocalDateTime createdDate; private Long sendUserId; - private GroupBriefInfoDto groups; + private GroupInfoForNotificationDto groups; private QueryNotificationReactionResponseElement reactions; } diff --git a/src/main/java/io/github/depromeet/knockknockbackend/domain/notification/service/NotificationService.java b/src/main/java/io/github/depromeet/knockknockbackend/domain/notification/service/NotificationService.java index 7fbd065f..944dc2f3 100644 --- a/src/main/java/io/github/depromeet/knockknockbackend/domain/notification/service/NotificationService.java +++ b/src/main/java/io/github/depromeet/knockknockbackend/domain/notification/service/NotificationService.java @@ -2,7 +2,7 @@ import io.github.depromeet.knockknockbackend.domain.group.domain.Group; -import io.github.depromeet.knockknockbackend.domain.group.presentation.dto.response.GroupBriefInfoDto; +import io.github.depromeet.knockknockbackend.domain.group.presentation.dto.response.GroupInfoForNotificationDto; import io.github.depromeet.knockknockbackend.domain.notification.domain.*; import io.github.depromeet.knockknockbackend.domain.notification.domain.Notification; import io.github.depromeet.knockknockbackend.domain.notification.domain.repository.DeviceTokenRepository; @@ -134,7 +134,9 @@ public QueryNotificationListResponseElement getQueryNotificationListResponseElem .imageUrl(notification.getImageUrl()) .createdDate(notification.getCreatedDate()) .sendUserId(notification.getSendUser().getId()) - .groups(new GroupBriefInfoDto(notification.getGroup().getGroupBaseInfoVo())) + .groups( + new GroupInfoForNotificationDto( + notification.getGroup().getGroupBaseInfoVo())) .reactions(notificationReactionResponseElement) .build(); }