Skip to content

Commit b881f72

Browse files
committed
feat ( #58 ) : WebPassAdapter에 스웨거 적용
1 parent 17b8307 commit b881f72

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • casper-application-infrastructure/src/main/kotlin/hs/kr/entrydsm/application/domain/pass/presentation

casper-application-infrastructure/src/main/kotlin/hs/kr/entrydsm/application/domain/pass/presentation/WebPassAdapter.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import hs.kr.entrydsm.application.domain.application.usecase.QueryIsFirstRoundPa
44
import hs.kr.entrydsm.application.domain.application.usecase.QueryIsSecondRoundPassUseCase
55
import hs.kr.entrydsm.application.domain.pass.presentation.dto.response.QueryIsFirstRoundPassResponse
66
import hs.kr.entrydsm.application.domain.pass.presentation.dto.response.QueryIsSecondRoundPassResponse
7+
import hs.kr.entrydsm.application.global.document.pass.PassApiDocument
78
import org.springframework.web.bind.annotation.GetMapping
89
import org.springframework.web.bind.annotation.RequestMapping
910
import org.springframework.web.bind.annotation.RestController
@@ -13,12 +14,12 @@ import org.springframework.web.bind.annotation.RestController
1314
class WebPassAdapter(
1415
private val queryIsFirstRoundPassUseCase: QueryIsFirstRoundPassUseCase,
1516
private val queryIsSecondRoundPassUseCase: QueryIsSecondRoundPassUseCase
16-
) {
17+
) : PassApiDocument {
1718
@GetMapping("/first-round")
18-
suspend fun queryIsFirstRound(): QueryIsFirstRoundPassResponse =
19+
override suspend fun queryIsFirstRound(): QueryIsFirstRoundPassResponse =
1920
queryIsFirstRoundPassUseCase.execute()
2021

2122
@GetMapping("/second-round")
22-
suspend fun queryIsSecondRound(): QueryIsSecondRoundPassResponse =
23+
override suspend fun queryIsSecondRound(): QueryIsSecondRoundPassResponse =
2324
queryIsSecondRoundPassUseCase.execute()
2425
}

0 commit comments

Comments
 (0)