라이브 방 룰렛 처리 및 저장
- Redis -> Valkey로 이전되도록 수정
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package kr.co.vividnext.sodalive.v2
|
||||
|
||||
import org.springframework.data.repository.CrudRepository
|
||||
|
||||
interface RouletteRepositoryV2 : CrudRepository<RouletteV2, Long> {
|
||||
fun findByCreatorId(creatorId: Long): List<RouletteV2>
|
||||
}
|
||||
17
src/main/kotlin/kr/co/vividnext/sodalive/v2/RouletteV2.kt
Normal file
17
src/main/kotlin/kr/co/vividnext/sodalive/v2/RouletteV2.kt
Normal file
@@ -0,0 +1,17 @@
|
||||
package kr.co.vividnext.sodalive.v2
|
||||
|
||||
import kr.co.vividnext.sodalive.live.roulette.RouletteItem
|
||||
import org.springframework.data.redis.core.RedisHash
|
||||
import org.springframework.data.redis.core.index.Indexed
|
||||
import javax.persistence.Id
|
||||
|
||||
@RedisHash("Roulette")
|
||||
data class RouletteV2(
|
||||
@Id
|
||||
val id: Long,
|
||||
@Indexed
|
||||
val creatorId: Long,
|
||||
var can: Int,
|
||||
var isActive: Boolean,
|
||||
var items: List<RouletteItem> = mutableListOf()
|
||||
)
|
||||
Reference in New Issue
Block a user