Skip to content

Commit

Permalink
Create auth argument resolver skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
mkSpace committed Dec 9, 2023
1 parent eb67b5a commit 03daedf
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.whatever.raisedragon.security.authentication

import com.whatever.raisedragon.domain.user.User

data class UserInfo(
val id: Long,
val nickname: String,
) {
companion object {
fun from(user: User): UserInfo {
return UserInfo(
user.id!!,
user.nickname.value,
)
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.whatever.raisedragon.security.resolver

import io.swagger.v3.oas.annotations.media.Schema

@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.VALUE_PARAMETER)
@Schema(hidden = true)
annotation class GetAuth

0 comments on commit 03daedf

Please sign in to comment.