-
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.
* [KAN-34] 유저 - 이메일인증 메일 전송 API 개발 * [KAN-34] 유저 - 이메일인증 메일 전송 API 개발 (패스워드 재설정 기능 추가) * [KAN-34] 유저 - 이메일인증 메일 전송 API 개발 (패스워드 재설정 기능 추가) * [KAN-34] 유저 - 이메일인증 메일 전송 API 개발 (네이밍 변경 * [KAN-34] 유저 - 이메일인증 메일 전송 API 개발 (네이밍 변경 * [KAN-34] 유저 - 이메일인증 메일 전송 API 개발 (네이밍 변경 * [KAN-34] 유저 - 이메일인증 메일 전송 API 개발 (네이밍 변경 (ktlint) * [KAN-36] 유저 - 패스워드 업데이트 API 개발 * [KAN-38] 유저 조회 API 개발 * [KAN-38] 유저 조회 API 개발 - conflict
- Loading branch information
1 parent
cbf29a4
commit 29440b0
Showing
7 changed files
with
84 additions
and
11 deletions.
There are no files selected for viewing
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
20 changes: 20 additions & 0 deletions
20
src/main/kotlin/com/restaurant/be/user/domain/service/GetUserService.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.restaurant.be.user.domain.service | ||
|
||
import com.restaurant.be.common.exception.NotFoundUserException | ||
import com.restaurant.be.user.presentation.dto.GetUserResponse | ||
import com.restaurant.be.user.repository.UserRepository | ||
import org.springframework.stereotype.Service | ||
|
||
@Service | ||
class GetUserService( | ||
private val userRepository: UserRepository | ||
) { | ||
|
||
fun getUser(userId: Long): GetUserResponse { | ||
val user = userRepository.findById(userId).orElseThrow { | ||
NotFoundUserException() | ||
} | ||
|
||
return GetUserResponse(user = 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
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 |
---|---|---|
|
@@ -7,18 +7,18 @@ data class UserDto( | |
val id: Long = 0, | ||
|
||
@ApiModelProperty(value = "이메일 아이디", example = "[email protected]", required = true) | ||
val email: String = "", | ||
val email: String, | ||
|
||
@ApiModelProperty(value = "비밀번호", example = "test12!@", required = true) | ||
val password: String = "", | ||
|
||
@ApiModelProperty(value = "닉네임", example = "닉네임", required = true) | ||
val nickname: String = "", | ||
val nickname: String, | ||
|
||
@ApiModelProperty( | ||
value = "프로필 이미지 URL", | ||
example = "https://test.com/test.jpg", | ||
required = true | ||
) | ||
val profileImageUrl: String = "" | ||
val profileImageUrl: String | ||
) |