-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
유저 프로필 정보 조회 API 구현
- Loading branch information
Showing
5 changed files
with
69 additions
and
18 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
...x/application/user/GetMyProfileUseCase.kt → ...application/user/GetUserProfileUseCase.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
package com.routebox.routebox.application.user | ||
|
||
import com.routebox.routebox.application.user.dto.GetMyProfileResult | ||
import com.routebox.routebox.application.user.dto.GetUserProfileResult | ||
import com.routebox.routebox.domain.user.UserService | ||
import org.springframework.stereotype.Component | ||
import org.springframework.transaction.annotation.Transactional | ||
|
||
@Component | ||
class GetMyProfileUseCase(private val userService: UserService) { | ||
class GetUserProfileUseCase(private val userService: UserService) { | ||
|
||
@Transactional(readOnly = true) | ||
operator fun invoke(userId: Long): GetMyProfileResult { | ||
operator fun invoke(userId: Long): GetUserProfileResult { | ||
val user = userService.getUserById(userId) | ||
return GetMyProfileResult.from(user) | ||
return GetUserProfileResult.from(user) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters