Skip to content

Commit e73049b

Browse files
committed
feat ( #18 ) : 기본적인 Domain Model 추가
1 parent f30da05 commit e73049b

14 files changed

Lines changed: 151 additions & 1 deletion

File tree

buildSrc/src/main/kotlin/PluginVersions.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ object PluginVersions {
33
const val SPRING_BOOT_VERSION = "3.4.4"
44
const val SPRING_DEPENDENCY_MANAGEMENT_VERSION = "1.1.7"
55
const val KTLINT_VERSION = "12.1.1"
6-
const val CASPER_CONVENTION_VERSION = "1.0.0"
76
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
package hs.kr.entrydsm.domain.application.model
2+
3+
import hs.kr.entrydsm.domain.application.model.types.Admission
4+
import hs.kr.entrydsm.domain.application.model.types.ParentRelationship
5+
import hs.kr.entrydsm.domain.application.model.types.Region
6+
import hs.kr.entrydsm.domain.application.model.types.Sex
7+
import hs.kr.entrydsm.domain.application.model.types.Status
8+
import java.time.LocalDate
9+
import java.util.UUID
10+
11+
data class Application(
12+
val id: UUID = UUID.randomUUID(),
13+
val number: UInt,
14+
val receiptCode: UInt,
15+
val admission: Admission,
16+
val region: Region,
17+
val status: Status,
18+
19+
val userId: UUID,
20+
val name: String,
21+
val phoneNumber: String,
22+
val sex: Sex,
23+
val birth: LocalDate,
24+
val photoPath: String,
25+
26+
val streetAddress: String,
27+
val postalCode: String,
28+
val detailAddress: String,
29+
30+
val parentName: String,
31+
val parentPhoneNumber: String,
32+
val parentRelationship: ParentRelationship,
33+
34+
val veteransNumber: Unit?,
35+
36+
val studyPlan: String,
37+
val selfIntroduce: String
38+
) {
39+
40+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package hs.kr.entrydsm.domain.application.model.types
2+
3+
enum class Admission {
4+
GENERAL,
5+
MEISTER_TALENT,
6+
SOCIAL_INTEGRATION,
7+
NATIONAL_MERIT,
8+
SPECIAL_ADMISSION
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package hs.kr.entrydsm.domain.application.model.types
2+
3+
enum class ParentRelationship {
4+
Father,
5+
Mother,
6+
GrandFather,
7+
GrandMother,
8+
Other
9+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package hs.kr.entrydsm.domain.application.model.types
2+
3+
enum class Region {
4+
DAEJEON,
5+
NATIONWIDE
6+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package hs.kr.entrydsm.domain.application.model.types
2+
3+
enum class Sex {
4+
MALE,
5+
FEMALE,
6+
UNKNOWN
7+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package hs.kr.entrydsm.domain.application.model.types
2+
3+
enum class Status {
4+
SUBMITTED,
5+
FIRST_STAGE_PASS,
6+
FIRST_STAGE_FAIL,
7+
FINAL_PASS,
8+
FINAL_FAIL,
9+
WAITLIST
10+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package hs.kr.entrydsm.domain.formula.model
2+
3+
import hs.kr.entrydsm.domain.application.model.types.Admission
4+
5+
data class Formula (
6+
val admission: Admission,
7+
val formula: String,
8+
val step: Short,
9+
)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package hs.kr.entrydsm.domain.formula.model.types
2+
3+
enum class Value {
4+
RESERVED,
5+
UNRESERVED
6+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package hs.kr.entrydsm.domain.score.model
2+
3+
import hs.kr.entrydsm.domain.score.model.types.Achievement
4+
import hs.kr.entrydsm.domain.score.model.types.Field
5+
import hs.kr.entrydsm.domain.score.model.types.Subject
6+
import java.util.UUID
7+
8+
data class Score(
9+
val id: UUID = UUID.randomUUID(),
10+
val userId: UUID,
11+
12+
val field: Field,
13+
14+
val subject: Subject?,
15+
val achievement: Achievement?,
16+
17+
val score: Short
18+
)

0 commit comments

Comments
 (0)