-
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.
* feat: UserTable 변경으로 인한 Entity 수정 * feat: Couple Table 수정으로 인한 Entity 수정 * feat: user couple 정보 추가 * feat: entity 수정으로 인한 변경 사항 적용 * feat: ID가 초기화 되지 않은 경우 exception 추가 * test: Add Jwt Authentication Test * test: Test DB를 h2 로 사용하도록 변경 * feat: Game Entity Table 수정 및 생성 * style: 불필요한 라인 정리 * feat: short game entity 수정으로 인한 변경 사항 적용 * feat: short game entity 수정으로 인한 변경 사항 적용 * feat: Mission Category Table 수정으로 인한 코드 추가 * feat: Mission Content Table 수정사항 반영 * feat: Game Round Table 수정 내용 반영 * feat: 사용자 알림 정보 테이블 수정 내용 적용 * feat: user mission Table 수정 내용 적용 * feat: wish coupon Table 수정 내용 적용 * style: fix ktlint * fix: 사용하지 않는 Dsl 코드 삭제 * fix: user Table 이름 변경
- Loading branch information
Showing
32 changed files
with
531 additions
and
77 deletions.
There are no files selected for viewing
7 changes: 6 additions & 1 deletion
7
module-domain/src/main/kotlin/universe/sparkle/domain/GameType.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,5 +1,10 @@ | ||
package universe.sparkle.domain | ||
|
||
enum class GameType { | ||
SHORT, LONG | ||
SHORT, LONG; | ||
|
||
companion object { | ||
const val CONTRACT_SHORT = "SHORT" | ||
const val CONTRACT_LONG = "LONG" | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
module-domain/src/main/kotlin/universe/sparkle/domain/UserMissionState.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package universe.sparkle.domain | ||
|
||
enum class UserMissionState { | ||
SUCCESS, FAILED, UNDECIDED | ||
} |
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 |
---|---|---|
|
@@ -4,4 +4,5 @@ data class AuthenticationToken( | |
val id: Long, | ||
val nickname: String?, | ||
val image: String?, | ||
val couple: Couple? | ||
) |
10 changes: 10 additions & 0 deletions
10
module-domain/src/main/kotlin/universe/sparkle/domain/model/Couple.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package universe.sparkle.domain.model | ||
|
||
import java.time.LocalDate | ||
|
||
data class Couple( | ||
val id: Long? = null, | ||
val startDate: LocalDate, | ||
val heartToken: Int = 5, | ||
val isDelete: Boolean = false, | ||
) |
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
5 changes: 5 additions & 0 deletions
5
.../src/main/kotlin/universe/sparkle/infrastructure/persistence/NotInitializedIdException.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package universe.sparkle.infrastructure.persistence | ||
|
||
class NotInitializedIdException( | ||
override val message: String = "ID has not been initialized yet" | ||
) : IllegalArgumentException(message) |
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
43 changes: 43 additions & 0 deletions
43
...ure/src/main/kotlin/universe/sparkle/infrastructure/persistence/entity/GameRoundEntity.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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package universe.sparkle.infrastructure.persistence.entity | ||
|
||
import jakarta.persistence.Column | ||
import jakarta.persistence.Entity | ||
import jakarta.persistence.GeneratedValue | ||
import jakarta.persistence.GenerationType | ||
import jakarta.persistence.Id | ||
import jakarta.persistence.Table | ||
import jakarta.validation.constraints.NotNull | ||
import java.time.Instant | ||
|
||
@Entity | ||
@Table(name = "game_round") | ||
class GameRoundEntity( | ||
id: Long? = null, | ||
gameId: Long, | ||
missionCategoryId: Long, | ||
winnerUserId: Long, | ||
updatedAt: Instant, | ||
) { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "id", nullable = false) | ||
var id: Long? = id | ||
protected set | ||
|
||
@NotNull | ||
@Column(name = "game_id", nullable = false) | ||
var gameId: Long = gameId | ||
protected set | ||
|
||
@Column(name = "mission_category_id") | ||
var missionCategoryId: Long = missionCategoryId | ||
protected set | ||
|
||
@Column(name = "winner_user_id") | ||
var winnerUserId: Long = winnerUserId | ||
protected set | ||
|
||
@Column(name = "updated_at") | ||
var updatedAt: Instant? = updatedAt | ||
protected set | ||
} |
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
21 changes: 21 additions & 0 deletions
21
...otlin/universe/sparkle/infrastructure/persistence/entity/NotificationInformationEntity.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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package universe.sparkle.infrastructure.persistence.entity | ||
|
||
import jakarta.persistence.Column | ||
import jakarta.persistence.EmbeddedId | ||
import jakarta.persistence.Entity | ||
import jakarta.persistence.Table | ||
|
||
@Entity | ||
@Table(name = "notification_information") | ||
class NotificationInformationEntity( | ||
id: NotificationInformationEntityId, | ||
enableAllNotification: Boolean = true, | ||
) { | ||
@EmbeddedId | ||
var id: NotificationInformationEntityId = id | ||
protected set | ||
|
||
@Column(name = "enable_all_notification") | ||
var enableAllNotification: Boolean = enableAllNotification | ||
protected set | ||
} |
Oops, something went wrong.