Skip to content

Commit 1a3d651

Browse files
authored
Merge pull request #138 from SEMOSAN/feat/#137-user-profile-email
[Feat] 유저 프로필 조회 시 이메일 추가
2 parents 7724c36 + 70627a7 commit 1a3d651

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/main/java/com/semosan/api/domain/user/dto/response/GetUserProfileResponse.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ public record GetUserProfileResponse(
1818
Double height,
1919
Double weight,
2020
ExerciseType exerciseType,
21-
LocalDate birthDate
21+
LocalDate birthDate,
22+
String email
2223
) {
2324
// User와 온보딩 정보로 프로필 조회 응답 DTO를 생성합니다.
2425
public static GetUserProfileResponse of(User user, UserOnboarding userOnboarding) {
@@ -39,7 +40,8 @@ public static GetUserProfileResponse of(User user, UserOnboarding userOnboarding
3940
user.getHeight(),
4041
user.getWeight(),
4142
exerciseType,
42-
user.getBirthDate()
43+
user.getBirthDate(),
44+
user.getEmail()
4345
);
4446
}
4547
}

0 commit comments

Comments
 (0)