Skip to content

Commit

Permalink
📝 포인트 정보 불러오기 api 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuuuuuk committed Mar 25, 2024
1 parent 1258cc6 commit 16a669f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package andreas311.miso.domain.user.application.port.input

import andreas311.miso.domain.user.application.port.input.dto.PointDto

interface GetPointUseCase {
fun execute(): PointDto
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package andreas311.miso.domain.user.application.service

import andreas311.miso.common.annotation.ReadOnlyRollbackService
import andreas311.miso.domain.auth.application.port.output.UserSecurityPort
import andreas311.miso.domain.user.application.port.input.GetPointUseCase
import andreas311.miso.domain.user.application.port.input.dto.PointDto

@ReadOnlyRollbackService
class GetPointService(
private val userSecurityPort: UserSecurityPort
) : GetPointUseCase {
override fun execute(): PointDto {
val user = userSecurityPort.currentUser()

return PointDto(user)
}
}

0 comments on commit 16a669f

Please sign in to comment.