Skip to content

Commit 6e12d4a

Browse files
committed
feat ( #18 ) : Formula 도메인 및, FormulaChain 추가
1 parent e73049b commit 6e12d4a

2 files changed

Lines changed: 41 additions & 2 deletions

File tree

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
11
package hs.kr.entrydsm.domain.formula.model
22

33
import hs.kr.entrydsm.domain.application.model.types.Admission
4+
import hs.kr.entrydsm.domain.application.model.types.Region
5+
import java.util.UUID
46

57
data class Formula (
6-
val admission: Admission,
8+
val id: UUID = UUID.randomUUID(),
9+
10+
val name: String,
11+
val description: String,
712
val formula: String,
8-
val step: Short,
13+
14+
val admission: Admission,
15+
val region: Region,
16+
17+
val nextStepId : UUID?,
18+
19+
val executionCondition: Int,
20+
val isOptional: Boolean,
21+
22+
val requiredValues: Set<String>,
23+
val isActive: Boolean = true,
924
)
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package hs.kr.entrydsm.domain.formula.model
2+
3+
import hs.kr.entrydsm.domain.application.model.types.Admission
4+
import hs.kr.entrydsm.domain.score.model.types.Field
5+
import java.util.UUID
6+
import javax.swing.plaf.synth.Region
7+
8+
data class FormulaChain(
9+
val id: UUID = UUID.randomUUID(),
10+
11+
val name: String,
12+
val description: String,
13+
14+
val admission: Admission,
15+
val region: Region,
16+
17+
val firstStepId: UUID,
18+
val lastStepId: UUID,
19+
val totalSteps: Int,
20+
21+
val expectedFields: Set<Field>,
22+
val estimatedDurationMs: Long,
23+
val isActive: Boolean,
24+
)

0 commit comments

Comments
 (0)