Skip to content

Commit

Permalink
Merge pull request #69 from Team-Shaka/feature/67
Browse files Browse the repository at this point in the history
✨ Feat: 알림조회 시 treehouseId 필드 추가
  • Loading branch information
HyoBN authored Jun 26, 2024
2 parents 380c27c + ccfb854 commit 58ebd00
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ repositories {
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
// spring data jpa
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public static NotificationResponseDTO.getNotification toGetNotification(Notifica
.profileImageUrl(notification.getSender().getProfileImageUrl())
.userName(notification.getSender().getName())
.receivedTime(String.valueOf(notification.getReceivedTime()))
.treehouseId(notification.getSender().getTreeHouse().getId())
.treehouseName(notification.getSender().getTreeHouse().getName())
.isChecked(notification.isChecked())
.targetId(notification.getTargetId())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public static class getNotification {
private String profileImageUrl;
private String userName;
private String receivedTime;
private Long treehouseId;
private String treehouseName;
private Boolean isChecked;
private Long targetId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
import treehouse.server.api.post.presentation.dto.PostResponseDTO;
import treehouse.server.api.member.business.MemberMapper;
import treehouse.server.api.reaction.presentation.dto.ReactionResponseDTO;
import treehouse.server.global.common.TimeFormatter;
import treehouse.server.global.common.util.TimeFormatter;
import treehouse.server.global.entity.member.Member;
import treehouse.server.global.entity.post.Post;
import treehouse.server.global.entity.post.PostImage;
import treehouse.server.global.entity.report.Report;
import treehouse.server.global.entity.treeHouse.TreeHouse;
import treehouse.server.global.feign.dto.PresignedUrlDTO;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package treehouse.server.global.common;
package treehouse.server.global.common.util;

import java.time.Duration;
import java.time.LocalDateTime;
Expand Down

0 comments on commit 58ebd00

Please sign in to comment.