Skip to content

Commit

Permalink
✨ feat: 로그인 API 응답 포맷 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
strongmhk committed Jul 4, 2024
1 parent 471aaf3 commit 71ce0cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/umc/dream/converter/UserConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/umc/dream/dto/UserResponseDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public static class JoinResultDTO{
@AllArgsConstructor
public static class LoginResultDTO {
Long userId;
String name;
}

@Builder
Expand Down

0 comments on commit 71ce0cc

Please sign in to comment.