Skip to content

Commit

Permalink
♻ :: notification 로직용 Group응답 DTO 사용하는 것으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
mybloom committed Dec 26, 2022
1 parent 9e4f31e commit d1abe54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit d1abe54

Please sign in to comment.