Skip to content

Commit 9b5d6ab

Browse files
committed
refactor: 쪽지 조회 응답값 수정
- 응답 Dto 수정 - 쿼리의 조회 컬럼 추가
1 parent a6f9154 commit 9b5d6ab

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/main/java/com/somemore/note/repository/NoteRepositoryImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public Page<NoteReceiverViewForCenter> findNotesByReceiverIsCenter(UUID centerId
4444
NoteReceiverViewForCenter.class,
4545
note.id,
4646
note.title,
47+
volunteer.id.as("senderId"),
4748
volunteer.nickname.as("senderName"),
4849
note.isRead
4950
))

src/main/java/com/somemore/note/repository/mapper/NoteReceiverViewForCenter.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@
55
import io.swagger.v3.oas.annotations.media.Schema;
66
import lombok.Builder;
77

8+
import java.util.UUID;
9+
810
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
911
@Builder
1012
public record NoteReceiverViewForCenter(
1113
@Schema(description = "쪽지 ID", example = "1111")
1214
Long id,
1315
@Schema(description = "쪽지 제목", example = "문의 드립니다.")
1416
String title,
17+
@Schema(description = "송신자 id", example = "1342134-32423-35345")
18+
UUID senderId,
1519
@Schema(description = "송신 봉사자 닉네임", example = "봉사왕")
1620
String senderName,
1721
@Schema(description = "읽음 여부", example = "true = 읽음, false = 안읽음")

0 commit comments

Comments
 (0)