diff --git a/src/main/java/com/dnd/spaced/domain/account/application/dto/response/ReadAccountInfoDto.java b/src/main/java/com/dnd/spaced/domain/account/application/dto/response/ReadAccountInfoDto.java index f55a891..d034ad2 100644 --- a/src/main/java/com/dnd/spaced/domain/account/application/dto/response/ReadAccountInfoDto.java +++ b/src/main/java/com/dnd/spaced/domain/account/application/dto/response/ReadAccountInfoDto.java @@ -5,6 +5,7 @@ import com.dnd.spaced.domain.account.domain.QuizInfo; public record ReadAccountInfoDto( + String email, String nickname, String profileImage, String company, @@ -21,6 +22,7 @@ public static ReadAccountInfoDto from(Account account) { QuizInfo quizInfo = account.getQuizInfo(); return new ReadAccountInfoDto( + account.getEmail(), account.getNickname(), account.getProfileImage(), careerInfo.getCompany().getName(), diff --git a/src/main/java/com/dnd/spaced/domain/account/presentation/dto/response/AccountInfoResponse.java b/src/main/java/com/dnd/spaced/domain/account/presentation/dto/response/AccountInfoResponse.java index 02cb7e5..e25500e 100644 --- a/src/main/java/com/dnd/spaced/domain/account/presentation/dto/response/AccountInfoResponse.java +++ b/src/main/java/com/dnd/spaced/domain/account/presentation/dto/response/AccountInfoResponse.java @@ -5,6 +5,9 @@ public record AccountInfoResponse( + @Schema(description = "이메일") + String email, + @Schema(description = "닉네임") String nickname, @@ -28,7 +31,7 @@ public static AccountInfoResponse of(ReadAccountInfoDto dto, String baseUrl, Str dto.developQuizCount() ); - return new AccountInfoResponse(dto.nickname(), profileImage, careerInfo, quizInfo); + return new AccountInfoResponse(dto.email(), dto.nickname(), profileImage, careerInfo, quizInfo); } private record CareerInfoResponse(