From 71ce0cc68f972fd9f1fde8786b3ced3c83527338 Mon Sep 17 00:00:00 2001 From: strongmhk Date: Fri, 5 Jul 2024 05:50:38 +0900 Subject: [PATCH] =?UTF-8?q?:sparkles:=20feat:=20=EB=A1=9C=EA=B7=B8?= =?UTF-8?q?=EC=9D=B8=20API=20=EC=9D=91=EB=8B=B5=20=ED=8F=AC=EB=A7=B7=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/umc/dream/converter/UserConverter.java | 1 + src/main/java/com/umc/dream/dto/UserResponseDTO.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/java/com/umc/dream/converter/UserConverter.java b/src/main/java/com/umc/dream/converter/UserConverter.java index 8beed46..8e621cb 100644 --- a/src/main/java/com/umc/dream/converter/UserConverter.java +++ b/src/main/java/com/umc/dream/converter/UserConverter.java @@ -18,6 +18,7 @@ public static UserResponseDTO.JoinResultDTO toJoinResultDTO(User user) { public static UserResponseDTO.LoginResultDTO toLoginResultDTO(User user) { return UserResponseDTO.LoginResultDTO.builder() .userId(user.getId()) + .name(user.getName()) .build(); } diff --git a/src/main/java/com/umc/dream/dto/UserResponseDTO.java b/src/main/java/com/umc/dream/dto/UserResponseDTO.java index 9f460d1..0d3f24f 100644 --- a/src/main/java/com/umc/dream/dto/UserResponseDTO.java +++ b/src/main/java/com/umc/dream/dto/UserResponseDTO.java @@ -24,6 +24,7 @@ public static class JoinResultDTO{ @AllArgsConstructor public static class LoginResultDTO { Long userId; + String name; } @Builder