diff --git a/src/main/java/org/winey/server/controller/response/user/UserResponseDto.java b/src/main/java/org/winey/server/controller/response/user/UserResponseDto.java index 96cdac5..49ef015 100644 --- a/src/main/java/org/winey/server/controller/response/user/UserResponseDto.java +++ b/src/main/java/org/winey/server/controller/response/user/UserResponseDto.java @@ -11,19 +11,27 @@ @AllArgsConstructor(access = AccessLevel.PRIVATE) public class UserResponseDto { - private Long userId; - private String nickname; - private String userLevel; - private Boolean fcmIsAllowed; - private Long accumulatedAmount; - private Long amountSavedHundredDays; - private Long amountSavedTwoWeeks; - private Long amountSpentTwoWeeks; + private UserData userData; + + @Getter + @NoArgsConstructor(access = AccessLevel.PRIVATE) + @AllArgsConstructor(access = AccessLevel.PRIVATE) + public static class UserData { + private Long userId; + private String nickname; + private String userLevel; + private Boolean fcmIsAllowed; + private Long accumulatedAmount; + private Long amountSavedHundredDays; + private Long amountSavedTwoWeeks; + private Long amountSpentTwoWeeks; + } public static UserResponseDto of(Long userId, String nickname, String userLevel, Boolean fcmIsAllowed, Long accumulatedAmount, Long amountSavedHundredDays, Long amountSavedTwoWeeks, Long amountSpentTwoWeeks) { - return new UserResponseDto(userId, nickname, userLevel, fcmIsAllowed, accumulatedAmount, - amountSavedHundredDays, amountSavedTwoWeeks, amountSpentTwoWeeks); + UserData userData = new UserData(userId, nickname, userLevel, fcmIsAllowed, accumulatedAmount, + amountSavedHundredDays, amountSavedTwoWeeks, amountSpentTwoWeeks); + return new UserResponseDto(userData); } }