Skip to content

Commit b3c6b86

Browse files
committed
refactor : ktlint
1 parent a64271b commit b3c6b86

49 files changed

Lines changed: 220 additions & 233 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

casper-status/src/main/kotlin/hs/kr/entrydsm/status/CasperStatusApplication.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ package hs.kr.entrydsm.status
33
import org.springframework.boot.autoconfigure.SpringBootApplication
44
import org.springframework.boot.runApplication
55

6-
@SpringBootApplication
76
/**
87
* 이 클래스이 무슨 일을 하는지 설명합니다.
98
*/
9+
@SpringBootApplication
1010
class CasperStatusApplication
11+
1112
/**
1213
* 이 클래스이 무슨 일을 하는지 설명합니다.
1314
*/

casper-status/src/main/kotlin/hs/kr/entrydsm/status/domain/status/adapter/in/web/AdminWebController.kt

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,18 @@ class AdminWebController(
2525
private val updateIsPrintsArrivedUseCase: UpdateIsPrintsArrivedUseCase,
2626
private val cancelApplicationSubmitUseCase: CancelApplicationSubmitUseCase,
2727
private val startScreeningUseCase: StartScreeningUseCase,
28-
private val announceResultUseCase: AnnounceResultUseCase
28+
private val announceResultUseCase: AnnounceResultUseCase,
2929
) : AdminStatusApiDocument {
30-
3130
/**
3231
* 지원서 제출을 취소합니다.
3332
* 제출된 지원서를 작성 중 상태로 되돌립니다.
3433
*
3534
* @param receiptCode 접수번호
3635
*/
3736
@PatchMapping("/submitted/{receipt-code}")
38-
override fun cancelApplicationSubmit(@PathVariable("receipt-code") receiptCode: Long) {
37+
override fun cancelApplicationSubmit(
38+
@PathVariable("receipt-code") receiptCode: Long,
39+
) {
3940
cancelApplicationSubmitUseCase.execute(receiptCode)
4041
}
4142

@@ -46,7 +47,9 @@ class AdminWebController(
4647
* @param receiptCode 접수번호
4748
*/
4849
@PatchMapping("/prints-arrived/{receipt-code}")
49-
override fun updateIsPrintsArrivedService(@PathVariable("receipt-code") receiptCode: Long) {
50+
override fun updateIsPrintsArrivedService(
51+
@PathVariable("receipt-code") receiptCode: Long,
52+
) {
5053
updateIsPrintsArrivedUseCase.execute(receiptCode)
5154
}
5255

@@ -57,7 +60,9 @@ class AdminWebController(
5760
* @param receiptCode 접수번호
5861
*/
5962
@PatchMapping("/screening/{receipt-code}")
60-
override fun startScreening(@PathVariable("receipt-code") receiptCode: Long) {
63+
override fun startScreening(
64+
@PathVariable("receipt-code") receiptCode: Long,
65+
) {
6166
startScreeningUseCase.execute(receiptCode)
6267
}
6368

@@ -68,7 +73,9 @@ class AdminWebController(
6873
* @param receiptCode 접수번호
6974
*/
7075
@PatchMapping("/announce/{receipt-code}")
71-
override fun announceResult(@PathVariable("receipt-code") receiptCode: Long) {
76+
override fun announceResult(
77+
@PathVariable("receipt-code") receiptCode: Long,
78+
) {
7279
announceResultUseCase.execute(receiptCode)
7380
}
7481
}

casper-status/src/main/kotlin/hs/kr/entrydsm/status/domain/status/adapter/in/web/InternalStatusWebController.kt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ package hs.kr.entrydsm.status.domain.status.adapter.`in`.web
22

33
import hs.kr.entrydsm.status.domain.status.application.port.`in`.GetAllStatusUseCase
44
import hs.kr.entrydsm.status.domain.status.application.port.`in`.GetStatusByReceiptCodeUseCase
5-
import hs.kr.entrydsm.status.infrastructure.grpc.server.dto.response.InternalStatusResponse
65
import hs.kr.entrydsm.status.domain.status.application.port.`in`.UpdateExamCodeUseCase
76
import hs.kr.entrydsm.status.global.document.status.InternalStatusApiDocument
7+
import hs.kr.entrydsm.status.infrastructure.grpc.server.dto.response.InternalStatusResponse
88
import org.springframework.web.bind.annotation.GetMapping
99
import org.springframework.web.bind.annotation.PathVariable
1010
import org.springframework.web.bind.annotation.PutMapping
@@ -25,17 +25,18 @@ import org.springframework.web.bind.annotation.RestController
2525
class InternalStatusWebController(
2626
private val getStatusByReceiptCodeUseCase: GetStatusByReceiptCodeUseCase,
2727
private val getAllStatusUseCase: GetAllStatusUseCase,
28-
private val updateExamCodeUseCase: UpdateExamCodeUseCase
28+
private val updateExamCodeUseCase: UpdateExamCodeUseCase,
2929
) : InternalStatusApiDocument {
30-
3130
/**
3231
* 접수번호로 상태를 조회합니다.
3332
*
3433
* @param receiptCode 접수번호
3534
* @return 지원자의 상태 정보
3635
*/
3736
@GetMapping("/{receipt-code}")
38-
override fun getStatusByReceiptCode(@PathVariable("receipt-code") receiptCode: Long): InternalStatusResponse {
37+
override fun getStatusByReceiptCode(
38+
@PathVariable("receipt-code") receiptCode: Long,
39+
): InternalStatusResponse {
3940
return getStatusByReceiptCodeUseCase.execute(receiptCode)
4041
}
4142

@@ -56,7 +57,10 @@ class InternalStatusWebController(
5657
* @param examCode 새로운 수험번호
5758
*/
5859
@PutMapping("/{receipt-code}")
59-
override fun updateExamCode(@PathVariable("receipt-code") receiptCode: Long, @RequestParam examCode: String) {
60+
override fun updateExamCode(
61+
@PathVariable("receipt-code") receiptCode: Long,
62+
@RequestParam examCode: String,
63+
) {
6064
updateExamCodeUseCase.execute(receiptCode, examCode)
6165
}
6266
}

casper-status/src/main/kotlin/hs/kr/entrydsm/status/domain/status/adapter/out/domain/StatusCache.kt

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,14 @@ import org.springframework.data.redis.core.TimeToLive
2121
class StatusCache(
2222
@Id
2323
val receiptCode: Long,
24-
2524
val applicationStatus: ApplicationStatus,
26-
2725
val examCode: String?,
28-
2926
val isFirstRoundPass: Boolean,
30-
3127
val isSecondRoundPass: Boolean,
32-
3328
@TimeToLive
34-
var ttl: Long
35-
){
36-
companion object{
29+
var ttl: Long,
30+
) {
31+
companion object {
3732
/**
3833
* Status 도메인 모델로부터 StatusCache 인스턴스를 생성합니다.
3934
*
@@ -43,11 +38,11 @@ class StatusCache(
4338
fun from(status: Status): StatusCache {
4439
return StatusCache(
4540
receiptCode = status.receiptCode,
46-
applicationStatus = status.applicationStatus,
41+
applicationStatus = status.applicationStatus,
4742
examCode = status.examCode,
4843
isFirstRoundPass = status.isFirstRoundPass,
4944
isSecondRoundPass = status.isSecondRoundPass,
50-
ttl = 60 * 10
45+
ttl = 60 * 10,
5146
)
5247
}
5348
}

casper-status/src/main/kotlin/hs/kr/entrydsm/status/domain/status/adapter/out/mapper/StatusMapper.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import org.mapstruct.Mapper
1010
* MapStruct를 사용하여 도메인 계층과 인프라스트럭처 계층 간의 데이터 변환을 처리합니다.
1111
*/
1212
@Mapper(componentModel = "spring")
13-
abstract class StatusMapper: GenericMapper<StatusJpaEntity, Status> {
14-
13+
abstract class StatusMapper : GenericMapper<StatusJpaEntity, Status> {
1514
/**
1615
* Status 도메인 모델을 StatusJpaEntity로 변환합니다.
1716
*

casper-status/src/main/kotlin/hs/kr/entrydsm/status/domain/status/adapter/out/persistence/StatusPersistenceAdapter.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ import org.springframework.stereotype.Component
1717
class StatusPersistenceAdapter(
1818
private val statusRepository: StatusRepository,
1919
private val statusMapper: StatusMapper,
20-
): StatusPort {
21-
20+
) : StatusPort {
2221
/**
2322
* 상태 정보를 저장합니다.
2423
*

casper-status/src/main/kotlin/hs/kr/entrydsm/status/domain/status/adapter/out/persistence/repository/StatusRepository.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@ import org.springframework.data.repository.CrudRepository
88
* Spring Data JPA를 통해 기본 CRUD 작업과 커스텀 쿼리를 제공합니다.
99
*/
1010
interface StatusRepository : CrudRepository<StatusJpaEntity, Long> {
11-
1211
/**
1312
* 접수번호로 상태 엔티티를 조회합니다.
1413
*
1514
* @param receiptCode 조회할 접수번호
1615
* @return 조회된 상태 엔티티 (없으면 null)
1716
*/
1817
fun findByReceiptCode(receiptCode: Long): StatusJpaEntity?
19-
18+
2019
/**
2120
* 접수번호로 상태 엔티티를 삭제합니다.
2221
*

casper-status/src/main/kotlin/hs/kr/entrydsm/status/domain/status/application/port/in/AnnounceResultUseCase.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ package hs.kr.entrydsm.status.domain.status.application.port.`in`
55
* 최종 전형 결과를 발표하고 상태를 변경하는 기능을 정의합니다.
66
*/
77
interface AnnounceResultUseCase {
8-
98
/**
109
* 합격 결과를 발표합니다.
1110
* 전형 진행 중 상태에서 합격 여부 확인 상태로 변경합니다.

casper-status/src/main/kotlin/hs/kr/entrydsm/status/domain/status/application/port/in/CancelApplicationSubmitUseCase.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ package hs.kr.entrydsm.status.domain.status.application.port.`in`
55
* 제출된 지원서를 작성 중 상태로 되돌리는 기능을 정의합니다.
66
*/
77
interface CancelApplicationSubmitUseCase {
8-
98
/**
109
* 지원서 제출을 취소합니다.
1110
* 제출 완료 상태에서 작성 중 상태로 변경합니다.

casper-status/src/main/kotlin/hs/kr/entrydsm/status/domain/status/application/port/in/CreateStatusUseCase.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ package hs.kr.entrydsm.status.domain.status.application.port.`in`
55
* 지원자가 최초로 원서를 접수할 때 상태 정보를 생성합니다.
66
*/
77
interface CreateStatusUseCase {
8-
98
/**
109
* 접수번호를 기반으로 새로운 상태를 생성합니다.
1110
*

0 commit comments

Comments
 (0)