-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: survey 도메인의 위치를 root모듈로 변경한다
- Loading branch information
Showing
25 changed files
with
78 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation project(":core:data") | ||
implementation project(":core:time") | ||
|
||
implementation "org.springframework.boot:spring-boot-starter-data-jpa" | ||
|
||
testRuntimeOnly "com.h2database:h2" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package domain.feedback.value | ||
|
||
import javax.persistence.Embeddable | ||
|
||
@Embeddable | ||
class NickName( | ||
val value: String | ||
) { | ||
|
||
companion object { | ||
private const val FIRST_NAME = "A" | ||
fun firstNickName(): domain.feedback.value.NickName = | ||
domain.feedback.value.NickName(domain.feedback.value.NickName.Companion.FIRST_NAME) | ||
|
||
fun nextNickName(lastName: String): domain.feedback.value.NickName { | ||
for (i in lastName.length - 1 downTo 0) { | ||
if (lastName[i] != 'Z') { | ||
return domain.feedback.value.NickName( | ||
lastName.substring(0, i) + (lastName[i].code + 1).toChar() + "A".repeat( | ||
lastName.length - (i + 1) | ||
) | ||
) | ||
} | ||
} | ||
return domain.feedback.value.NickName("A".repeat(Math.max(0, lastName.length + 1))) | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...n/me/nalab/survey/domain/survey/Choice.kt → src/main/kotlin/domain/survey/Choice.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package me.nalab.survey.domain.survey | ||
package domain.survey | ||
|
||
import javax.persistence.* | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...urvey/domain/survey/ChoiceFormQuestion.kt → ...otlin/domain/survey/ChoiceFormQuestion.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...y/domain/survey/ChoiceFormQuestionType.kt → ...n/domain/survey/ChoiceFormQuestionType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package me.nalab.survey.domain.survey | ||
package domain.survey | ||
|
||
enum class ChoiceFormQuestionType { | ||
TENDENCY, | ||
|
2 changes: 1 addition & 1 deletion
2
.../survey/domain/survey/FormQuestionable.kt → .../kotlin/domain/survey/FormQuestionable.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...alab/survey/domain/survey/QuestionType.kt → ...main/kotlin/domain/survey/QuestionType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package me.nalab.survey.domain.survey | ||
package domain.survey | ||
|
||
enum class QuestionType { | ||
CHOICE, | ||
|
2 changes: 1 addition & 1 deletion
2
...survey/domain/survey/ShortFormQuestion.kt → ...kotlin/domain/survey/ShortFormQuestion.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package me.nalab.survey.domain.survey | ||
package domain.survey | ||
|
||
import javax.persistence.* | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...ey/domain/survey/ShortFormQuestionType.kt → ...in/domain/survey/ShortFormQuestionType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package me.nalab.survey.domain.survey | ||
package domain.survey | ||
|
||
enum class ShortFormQuestionType { | ||
STRENGTH, | ||
|
2 changes: 1 addition & 1 deletion
2
...n/me/nalab/survey/domain/survey/Survey.kt → src/main/kotlin/domain/survey/Survey.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ab/survey/domain/survey/SurveyBookmark.kt → ...in/kotlin/domain/survey/SurveyBookmark.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../survey/domain/survey/SurveyRepository.kt → .../kotlin/domain/survey/SurveyRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...n/me/nalab/survey/domain/survey/Target.kt → src/main/kotlin/domain/survey/Target.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...vey/exception/DuplicatedOrderException.kt → ...vey/exception/DuplicatedOrderException.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ab/survey/domain/survey/value/ImageUrl.kt → ...in/kotlin/domain/survey/value/ImageUrl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...e/nalab/survey/domain/survey/value/Job.kt → src/main/kotlin/domain/survey/value/Job.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ab/survey/domain/survey/value/Position.kt → ...in/kotlin/domain/survey/value/Position.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +0,0 @@ | ||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation project(":core:data") | ||
implementation project(":core:time") | ||
|
||
implementation "org.springframework.boot:spring-boot-starter-data-jpa" | ||
|
||
testRuntimeOnly "com.h2database:h2" | ||
} | ||
25 changes: 0 additions & 25 deletions
25
survey/src/main/kotlin/me/nalab/survey/domain/feedback/value/NickName.kt
This file was deleted.
Oops, something went wrong.