Skip to content

Commit 4117f31

Browse files
Merge pull request #38 from EntryDSM/feature/36-pdf-and-excel-merge-to-application
feature/36-pdf-and-excel-merge-to-application
2 parents 2a8d653 + 4b74aa9 commit 4117f31

38 files changed

Lines changed: 957 additions & 337 deletions

casper-application-domain/src/main/kotlin/hs/kr/entrydsm/domain/status/aggregates/Status.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
package hs.kr.entrydsm.domain.status.aggregates
22

3+
import hs.kr.entrydsm.domain.status.values.ApplicationStatus
34
import hs.kr.entrydsm.global.annotation.aggregates.Aggregate
45

56
@Aggregate(context = "status")
67
data class Status(
78
val id: Long? = 0,
8-
val isPrintsArrived: Boolean = false,
9-
val isSubmitted: Boolean = false,
109
val examCode: String? = null,
10+
val applicationStatus: ApplicationStatus,
1111
val isFirstRoundPass: Boolean = false,
1212
val isSecondRoundPass: Boolean = false,
1313
val receiptCode: Long,
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package hs.kr.entrydsm.domain.status.aggregates
2+
3+
import hs.kr.entrydsm.domain.status.values.ApplicationStatus
4+
5+
data class StatusCache(
6+
val receiptCode: Long,
7+
val examCode: String?,
8+
val applicationStatus: ApplicationStatus,
9+
val isFirstRoundPass: Boolean,
10+
val isSecondRoundPass: Boolean,
11+
val ttl: Long
12+
)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package hs.kr.entrydsm.domain.status.interfaces
2+
3+
interface ApplicationCommandStatusContract {
4+
fun updateExamCode(receiptCode: Long, examCode: String)
5+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package hs.kr.entrydsm.domain.status.interfaces
2+
3+
import hs.kr.entrydsm.domain.status.aggregates.Status
4+
import hs.kr.entrydsm.domain.status.aggregates.StatusCache
5+
6+
interface ApplicationQueryStatusContract {
7+
fun queryStatusByReceiptCode(receiptCode: Long): Status?
8+
fun queryStatusByReceiptCodeInCache(receiptCode: Long): StatusCache?
9+
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
package hs.kr.entrydsm.domain.status.interfaces
22

3-
interface StatusContract :
4-
SaveExamCodeContract
3+
interface StatusContract : ApplicationQueryStatusContract, ApplicationCommandStatusContract
Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,42 @@
11
package hs.kr.entrydsm.domain.status.values
22

3+
/**
4+
* 지원서 상태를 나타내는 열거형 클래스입니다.
5+
* gRPC 프로토콜과 매핑되는 지원 상태를 정의합니다.
6+
*/
37
enum class ApplicationStatus {
4-
/** 미지원 - 지원자가 원서를 작성하지 않은 상태 */
8+
/**
9+
* 미지원 - 지원자가 원서를 작성하지 않은 상태
10+
*/
511
NOT_APPLIED,
612

7-
/** 원서 작성 중 - 원서가 저장되었으나 제출되지 않은 상태 */
13+
/**
14+
* 원서 작성 중 - 원서가 저장되었으나 제출되지 않은 상태
15+
*/
816
WRITING,
917

10-
/** 지원 완료 - 온라인 원서 접수 완료 상태 */
18+
/**
19+
* 지원 완료 - 온라인 원서 접수 완료 상태
20+
*/
1121
SUBMITTED,
1222

13-
/** 서류 도착 대기 - 원서 제출 후 학교에서 접수 확인 전 상태 */
23+
/**
24+
* 서류 도착 대기 - 원서 제출 후 학교에서 접수 확인 전 상태
25+
*/
1426
WAITING_DOCUMENTS,
1527

16-
/** 서류 접수 완료 - 학교에서 원서 및 증빙 서류가 정상적으로 도착하여 검토 완료된 상태 */
28+
/**
29+
* 서류 접수 완료 - 학교에서 원서 및 증빙 서류가 정상적으로 도착하여 검토 완료된 상태
30+
*/
1731
DOCUMENTS_RECEIVED,
1832

19-
/** 전형 진행 중 - 1차 또는 2차 전형이 진행 중인 상태 */
33+
/**
34+
* 전형 진행 중 - 1차 또는 2차 전형이 진행 중인 상태
35+
*/
2036
SCREENING_IN_PROGRESS,
2137

22-
/** 합격 여부 확인 - 최종 합격자 발표 완료 상태 */
23-
RESULT_ANNOUNCED
38+
/**
39+
* 합격 여부 확인 - 최종 합격자 발표 완료 상태
40+
*/
41+
RESULT_ANNOUNCED,
2442
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package hs.kr.entrydsm.domain.user.aggregates
2+
3+
import hs.kr.entrydsm.global.annotation.aggregates.Aggregate
4+
import java.util.UUID
5+
6+
@Aggregate(context = "user")
7+
data class User(
8+
val id: UUID,
9+
val phoneNumber: String,
10+
val name: String,
11+
val isParent: Boolean
12+
)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package hs.kr.entrydsm.domain.user.interfaces
2+
3+
import hs.kr.entrydsm.domain.user.aggregates.User
4+
import java.util.UUID
5+
6+
interface ApplicationQueryUserContract {
7+
fun queryUserByUserId(userId: UUID): User
8+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package hs.kr.entrydsm.domain.user.interfaces
2+
3+
interface UserContract : ApplicationQueryUserContract {
4+
}

casper-application-infrastructure/src/main/kotlin/hs/kr/entrydsm/application/global/grpc/dto/user/UserRole.kt renamed to casper-application-domain/src/main/kotlin/hs/kr/entrydsm/domain/user/value/UserRole.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package hs.kr.entrydsm.application.global.grpc.dto.user
1+
package hs.kr.entrydsm.domain.user.value
22

33
/**
44
* 사용자 역할을 나타내는 열거형 클래스입니다.
@@ -19,4 +19,4 @@ enum class UserRole {
1919
* 관리자 권한
2020
*/
2121
ADMIN,
22-
}
22+
}

0 commit comments

Comments
 (0)