From a047cae5431345857b19bbab565a12a953983dbb Mon Sep 17 00:00:00 2001 From: kyeong-hyeok Date: Thu, 6 Jun 2024 23:11:02 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=B4=89=EC=82=AC=EC=9E=90=20=EC=8B=A0?= =?UTF-8?q?=EC=B2=AD=20=EB=82=B4=EC=97=AD=20=EB=8B=A8=EA=B1=B4=20=EC=A1=B0?= =?UTF-8?q?=ED=9A=8C=20API=20=EC=88=98=EC=A0=95=20(#240)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dto/response/ApplicationVolunteerGetOneResponse.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/pawwithu/connectdog/domain/application/dto/response/ApplicationVolunteerGetOneResponse.java b/src/main/java/com/pawwithu/connectdog/domain/application/dto/response/ApplicationVolunteerGetOneResponse.java index 9734a671..544c3a13 100644 --- a/src/main/java/com/pawwithu/connectdog/domain/application/dto/response/ApplicationVolunteerGetOneResponse.java +++ b/src/main/java/com/pawwithu/connectdog/domain/application/dto/response/ApplicationVolunteerGetOneResponse.java @@ -8,10 +8,11 @@ public record ApplicationVolunteerGetOneResponse(Long id, @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy.MM.dd", timezone = "Asia/Seoul") LocalDate createdDate, + String nickname, String volunteerName, String phone, String content) { public static ApplicationVolunteerGetOneResponse from(Application application) { - return new ApplicationVolunteerGetOneResponse(application.getId(), application.getCreatedDate().toLocalDate(), + return new ApplicationVolunteerGetOneResponse(application.getId(), application.getCreatedDate().toLocalDate(), application.getVolunteer().getNickname(), application.getVolunteerName(), application.getPhone(), application.getContent()); }