Story
This commit is contained in:
19
SVSim.Database/Repositories/Story/IStoryMasterRepository.cs
Normal file
19
SVSim.Database/Repositories/Story/IStoryMasterRepository.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using SVSim.Database.Entities.Story;
|
||||
|
||||
namespace SVSim.Database.Repositories.Story;
|
||||
|
||||
public interface IStoryMasterRepository
|
||||
{
|
||||
Task<List<StorySection>> GetSectionsByFamilyAsync(StoryApiType apiType);
|
||||
Task<List<StoryWorld>> GetWorldsForSectionsAsync(IEnumerable<int> worldIds);
|
||||
Task<List<StoryChapter>> GetChaptersBySectionCharaAsync(int sectionId, int charaId);
|
||||
|
||||
/// <summary>
|
||||
/// Bulk-load chapter scalars (no owned collections) across multiple sections in one round-trip.
|
||||
/// Used by the section rollup to avoid N+1 per (section, chara) lookups.
|
||||
/// </summary>
|
||||
Task<List<StoryChapter>> GetChaptersBySectionsAsync(IEnumerable<int> sectionIds);
|
||||
|
||||
Task<StoryChapter?> GetChapterByIdAsync(int storyId);
|
||||
Task<SpecialBattleSetting?> GetSbsByIdAsync(int sbsId);
|
||||
}
|
||||
Reference in New Issue
Block a user