[F] Fix interface treated as repository

pull/14/head
Azalea 2024-02-27 13:21:16 -05:00
parent 5166387f34
commit 6dbed875e1
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import icu.samnyan.aqua.net.games.RankCount
import icu.samnyan.aqua.net.games.TrendOut
import icu.samnyan.aqua.sega.general.model.Card
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.repository.NoRepositoryBean
data class TrendLog(val date: String, val rating: Int)
@ -43,6 +44,7 @@ interface IGenericUserData {
var card: Card?
}
@NoRepositoryBean
interface GenericUserDataRepo<T : IGenericUserData, ID> : JpaRepository<T, ID> {
fun findByCard(card: Card): T?
fun getRanking(rating: Int): Long