Skip to content

Commit

Permalink
Merge pull request #280 from minahYu/feat/get-user-profile-photo
Browse files Browse the repository at this point in the history
[User] 프로필조회 시 프로필사진 조회 기능 추가
  • Loading branch information
minahYu authored Nov 9, 2024
2 parents 38e5798 + 1ddf711 commit cd6aa3c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
public record GetUserProfileResponse(
Long userId,
String email,
String username
String username,
String filename
) {

}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class UserServiceImpl(

override fun getProfile(userId: Long): GetUserProfileResponse {
val user = getUser(userId)
return GetUserProfileResponse(user.id, user.email, user.username)
return GetUserProfileResponse(user.id, user.email, user.username, user.file)
}

override fun updateProfile(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ class UserControllerTest(
.userId(userId)
.email(TEST_EMAIL)
.username(TEST_USERNAME)
.filename(CommonTest.TEST_PROFILE_IMG)
.build()
val response = ApiResponse(data = data)
every { authClient.getTokenInfo(any()) }.returns(
Expand Down Expand Up @@ -568,6 +569,7 @@ class UserControllerTest(
"data.userId" type Strings mean "사용자 아이디"
"data.email" type Strings mean "이메일"
"data.username" type Strings mean "닉네임"
"data.filename" type Strings mean "프로필 이미지 파일명"
}
}
}
Expand Down

0 comments on commit cd6aa3c

Please sign in to comment.