diff --git a/src/main/java/com/example/fiurinee/domain/anniversary/dto/AnniversaryResponseDTO.java b/src/main/java/com/example/fiurinee/domain/anniversary/dto/AnniversaryResponseDTO.java index 0eba0b7..e601055 100644 --- a/src/main/java/com/example/fiurinee/domain/anniversary/dto/AnniversaryResponseDTO.java +++ b/src/main/java/com/example/fiurinee/domain/anniversary/dto/AnniversaryResponseDTO.java @@ -15,6 +15,7 @@ @Builder public class AnniversaryResponseDTO { private Long id; + private String name; private String anniversaryDate; private String type; private List> dDays; @@ -22,6 +23,7 @@ public class AnniversaryResponseDTO { public static AnniversaryResponseDTO of(Anniversary anniversary, List> dDays) { return AnniversaryResponseDTO.builder() .id(anniversary.getId()) + .name(anniversary.getName()) .anniversaryDate(anniversary.getAnniversaryDate().toString()) .type(anniversary.getType().name()) .dDays(dDays) @@ -37,6 +39,7 @@ public static AnniversaryResponseDTO empty() { return AnniversaryResponseDTO.builder() .id(null) + .name(null) .anniversaryDate(null) .type(null) .dDays(dDays) diff --git a/src/main/java/com/example/fiurinee/domain/member/dto/MemberResponseDTO.java b/src/main/java/com/example/fiurinee/domain/member/dto/MemberResponseDTO.java index ae25710..1a85b49 100644 --- a/src/main/java/com/example/fiurinee/domain/member/dto/MemberResponseDTO.java +++ b/src/main/java/com/example/fiurinee/domain/member/dto/MemberResponseDTO.java @@ -34,6 +34,7 @@ public static MemberResponseDTO of(Member member) { .anniversaries(member.getAnniversaries().stream() .map(anniversary -> Map.of( "id", anniversary.getId(), + "name", anniversary.getName(), "anniversaryDate", anniversary.getAnniversaryDate().toString(), "type", anniversary.getType().name(), "d-day", anniversaryService.calculateDDay(anniversary)