Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import hs.kr.entrydsm.status.domain.status.application.port.`in`.AnnounceResultU
import hs.kr.entrydsm.status.domain.status.application.port.`in`.CancelApplicationSubmitUseCase
import hs.kr.entrydsm.status.domain.status.application.port.`in`.StartScreeningUseCase
import hs.kr.entrydsm.status.domain.status.application.port.`in`.UpdateIsPrintsArrivedUseCase
import hs.kr.entrydsm.status.global.document.status.AdminStatusApiDocument
import org.springframework.web.bind.annotation.PatchMapping
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RequestMapping
Expand All @@ -25,7 +26,7 @@ class AdminWebController(
private val cancelApplicationSubmitUseCase: CancelApplicationSubmitUseCase,
private val startScreeningUseCase: StartScreeningUseCase,
private val announceResultUseCase: AnnounceResultUseCase
) {
) : AdminStatusApiDocument {

/**
* 지원서 제출을 취소합니다.
Expand All @@ -34,7 +35,7 @@ class AdminWebController(
* @param receiptCode 접수번호
*/
@PatchMapping("/submitted/{receipt-code}")
fun cancelApplicationSubmit(@PathVariable("receipt-code") receiptCode: Long) {
override fun cancelApplicationSubmit(@PathVariable("receipt-code") receiptCode: Long) {
cancelApplicationSubmitUseCase.execute(receiptCode)
}

Expand All @@ -45,7 +46,7 @@ class AdminWebController(
* @param receiptCode 접수번호
*/
@PatchMapping("/prints-arrived/{receipt-code}")
fun updateIsPrintsArrivedService(@PathVariable("receipt-code") receiptCode: Long) {
override fun updateIsPrintsArrivedService(@PathVariable("receipt-code") receiptCode: Long) {
updateIsPrintsArrivedUseCase.execute(receiptCode)
}

Expand All @@ -56,7 +57,7 @@ class AdminWebController(
* @param receiptCode 접수번호
*/
@PatchMapping("/screening/{receipt-code}")
fun startScreening(@PathVariable("receipt-code") receiptCode: Long) {
override fun startScreening(@PathVariable("receipt-code") receiptCode: Long) {
startScreeningUseCase.execute(receiptCode)
}

Expand All @@ -67,7 +68,7 @@ class AdminWebController(
* @param receiptCode 접수번호
*/
@PatchMapping("/announce/{receipt-code}")
fun announceResult(@PathVariable("receipt-code") receiptCode: Long) {
override fun announceResult(@PathVariable("receipt-code") receiptCode: Long) {
announceResultUseCase.execute(receiptCode)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import hs.kr.entrydsm.status.domain.status.application.port.`in`.GetAllStatusUse
import hs.kr.entrydsm.status.domain.status.application.port.`in`.GetStatusByReceiptCodeUseCase
import hs.kr.entrydsm.status.infrastructure.grpc.server.dto.response.InternalStatusResponse
import hs.kr.entrydsm.status.domain.status.application.port.`in`.UpdateExamCodeUseCase
import hs.kr.entrydsm.status.global.document.status.InternalStatusApiDocument
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.PutMapping
Expand All @@ -25,7 +26,7 @@ class InternalStatusWebController(
private val getStatusByReceiptCodeUseCase: GetStatusByReceiptCodeUseCase,
private val getAllStatusUseCase: GetAllStatusUseCase,
private val updateExamCodeUseCase: UpdateExamCodeUseCase
) {
) : InternalStatusApiDocument {

/**
* 접수번호로 상태를 조회합니다.
Expand All @@ -34,7 +35,7 @@ class InternalStatusWebController(
* @return 지원자의 상태 정보
*/
@GetMapping("/{receipt-code}")
fun getStatusByReceiptCode(@PathVariable("receipt-code") receiptCode: Long): InternalStatusResponse {
override fun getStatusByReceiptCode(@PathVariable("receipt-code") receiptCode: Long): InternalStatusResponse {
return getStatusByReceiptCodeUseCase.execute(receiptCode)
}

Expand All @@ -44,7 +45,7 @@ class InternalStatusWebController(
* @return 전체 지원자 상태 정보 목록
*/
@GetMapping("/list")
fun getAllStatus(): List<InternalStatusResponse> {
override fun getAllStatus(): List<InternalStatusResponse> {
return getAllStatusUseCase.execute()
}

Expand All @@ -55,7 +56,7 @@ class InternalStatusWebController(
* @param examCode 새로운 수험번호
*/
@PutMapping("/{receipt-code}")
fun updateExamCode(@PathVariable("receipt-code") receiptCode: Long, @RequestParam examCode: String) {
override fun updateExamCode(@PathVariable("receipt-code") receiptCode: Long, @RequestParam examCode: String) {
updateExamCodeUseCase.execute(receiptCode, examCode)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ interface AdminStatusApiDocument {
content = arrayOf(Content())
)
)
fun updateIsPrintsArrived(
fun updateIsPrintsArrivedService(
@Parameter(description = "접수번호", required = true)
@PathVariable("receipt-code") receiptCode: Long
)
Expand Down
Loading