Skip to content

Commit

Permalink
[KAN-96] 유저 정보 조회시 id값 0으로 뜨는 버그 해결 (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkyoungdeok authored May 25, 2024
1 parent 0d4b783 commit 1bac26b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class User(
@Column(unique = true)
var nickname: String = "",

@Column
var password: String = "",

@Column(columnDefinition = "boolean default false")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ data class SignInUserResponse(
) {
constructor(user: User, token: Token) : this(
userDto = UserDto(
id = user.id ?: 0,
email = user.email,
nickname = user.nickname,
profileImageUrl = user.profileImageUrl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import io.swagger.annotations.ApiModelProperty

data class UserDto(
@ApiModelProperty(value = "유저 아이디", example = "1", required = true)
val id: Long = 0,
val id: Long,

@ApiModelProperty(value = "이메일 아이디", example = "test@gmail.com", required = true)
val email: String,
Expand Down

0 comments on commit 1bac26b

Please sign in to comment.