Skip to content

Commit 8ba6ff4

Browse files
authored
feat(diary): add diaryId in mydiaryResponseDto
# 변경점 👍 MyDiaryResponseDto에 diaryId 추가 # 비고 ✏ 킬링파트 수정 시 필요한 diaryId를 응답에 추가했습니다.
1 parent 3c15eb7 commit 8ba6ff4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/apptive/team5/diary/dto/MyDiaryResponseDto.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import java.time.LocalDateTime;
77

88
public record MyDiaryResponseDto(
9+
Long diaryId,
910
String artist,
1011
String musicTitle,
1112
String albumImageUrl,
@@ -20,6 +21,7 @@ public record MyDiaryResponseDto(
2021
) {
2122
public static MyDiaryResponseDto from(DiaryEntity diary) {
2223
return new MyDiaryResponseDto(
24+
diary.getId(),
2325
diary.getArtist(),
2426
diary.getMusicTitle(),
2527
diary.getAlbumImageUrl(),

0 commit comments

Comments
 (0)