Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[User] 프로필조회 시 프로필사진 조회 기능 추가 #280

Merged
merged 3 commits into from
Nov 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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