From 0429cb060cd8750feaa9c06003691056c66076aa Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Wed, 26 Mar 2025 17:49:22 -0400 Subject: [PATCH] [+] Ongeki: All repos component --- .../samnyan/aqua/sega/ongeki/OngekiRepos.kt | 58 ++++++++++++++++--- 1 file changed, 50 insertions(+), 8 deletions(-) diff --git a/src/main/java/icu/samnyan/aqua/sega/ongeki/OngekiRepos.kt b/src/main/java/icu/samnyan/aqua/sega/ongeki/OngekiRepos.kt index 1b972c70..2e349906 100644 --- a/src/main/java/icu/samnyan/aqua/sega/ongeki/OngekiRepos.kt +++ b/src/main/java/icu/samnyan/aqua/sega/ongeki/OngekiRepos.kt @@ -12,6 +12,7 @@ import org.springframework.data.domain.Pageable import org.springframework.data.jpa.repository.JpaRepository import org.springframework.data.jpa.repository.Query import org.springframework.data.repository.NoRepositoryBean +import org.springframework.stereotype.Component import java.util.* @@ -144,19 +145,60 @@ interface OgkUserTrainingRoomRepo : OngekiUserLinked { fun findByUserAndRoomId(user: UserData, roomId: Int): Optional } - interface OgkGameCardRepo : JpaRepository - interface OgkGameCharaRepo : JpaRepository - interface OgkGameEventRepo : JpaRepository - interface OgkGameMusicRepo : JpaRepository - interface OgkGamePointRepo : JpaRepository - interface OgkGamePresentRepo : JpaRepository - interface OgkGameRewardRepo : JpaRepository - interface OgkGameSkillRepo : JpaRepository + +@Component +class OngekiUserRepos( + val data: OgkUserDataRepo, + val activity: OgkUserActivityRepo, + val boss: OgkUserBossRepo, + val card: OgkUserCardRepo, + val chapter: OgkUserChapterRepo, + val character: OgkUserCharacterRepo, + val deck: OgkUserDeckRepo, + val eventMusic: OgkUserEventMusicRepo, + val eventPoint: OgkUserEventPointRepo, + val generalData: OgkUserGeneralDataRepo, + val item: OgkUserItemRepo, + val kop: OgkUserKopRepo, + val loginBonus: OgkUserLoginBonusRepo, + val memoryChapter: OgkUserMemoryChapterRepo, + val missionPoint: OgkUserMissionPointRepo, + val musicDetail: OgkUserMusicDetailRepo, + val musicItem: OgkUserMusicItemRepo, + val option: OgkUserOptionRepo, + val playlog: OgkUserPlaylogRepo, + val rivalData: OgkUserRivalDataRepo, + val scenario: OgkUserScenarioRepo, + val story: OgkUserStoryRepo, + val techCount: OgkUserTechCountRepo, + val techEvent: OgkUserTechEventRepo, + val tradeItem: OgkUserTradeItemRepo, + val trainingRoom: OgkUserTrainingRoomRepo, +) + +@Component +class OngekiGameRepos( + val card: OgkGameCardRepo, + val chara: OgkGameCharaRepo, + val event: OgkGameEventRepo, + val music: OgkGameMusicRepo, + val point: OgkGamePointRepo, + val present: OgkGamePresentRepo, + val reward: OgkGameRewardRepo, + val skill: OgkGameSkillRepo, +) + +@Component +class OngekiRepos( + val u: OngekiUserRepos, + val g: OngekiGameRepos, +) +