Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
meltapplee committed Apr 22, 2024
2 parents 4a2a9bc + 3be058d commit 66e53d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package dsm.pick2024.domain.admin.presentation.dto.response

data class QueryAdminNameResponse(
val name: String
val name: String,
val grade: Int,
val classNum: Int
)
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ import org.springframework.transaction.annotation.Transactional
class QueryAdminNameService(
private val adminFacadeUseCase: AdminFacadeUseCase
) : QueryAdminNameUseCase {

@Transactional(readOnly = true)
override fun queryAdminName(): QueryAdminNameResponse {
val admin = adminFacadeUseCase.currentUser().name
return QueryAdminNameResponse(admin)
val admin = adminFacadeUseCase.currentUser()
return QueryAdminNameResponse(
name = admin.name,
grade = admin.grade!!,
classNum = admin.classNum!!
)
}
}

0 comments on commit 66e53d3

Please sign in to comment.