forked from Cookies_Github_mirror/AquaDX
[F] Fix interface treated as repository
This commit is contained in:
@@ -7,6 +7,7 @@ import icu.samnyan.aqua.net.games.RankCount
|
|||||||
import icu.samnyan.aqua.net.games.TrendOut
|
import icu.samnyan.aqua.net.games.TrendOut
|
||||||
import icu.samnyan.aqua.sega.general.model.Card
|
import icu.samnyan.aqua.sega.general.model.Card
|
||||||
import org.springframework.data.jpa.repository.JpaRepository
|
import org.springframework.data.jpa.repository.JpaRepository
|
||||||
|
import org.springframework.data.repository.NoRepositoryBean
|
||||||
|
|
||||||
data class TrendLog(val date: String, val rating: Int)
|
data class TrendLog(val date: String, val rating: Int)
|
||||||
|
|
||||||
@@ -43,6 +44,7 @@ interface IGenericUserData {
|
|||||||
var card: Card?
|
var card: Card?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NoRepositoryBean
|
||||||
interface GenericUserDataRepo<T : IGenericUserData, ID> : JpaRepository<T, ID> {
|
interface GenericUserDataRepo<T : IGenericUserData, ID> : JpaRepository<T, ID> {
|
||||||
fun findByCard(card: Card): T?
|
fun findByCard(card: Card): T?
|
||||||
fun getRanking(rating: Int): Long
|
fun getRanking(rating: Int): Long
|
||||||
|
|||||||
Reference in New Issue
Block a user