feat: Reader working, some work still need to be done

This commit is contained in:
ext.jeremy.guillot@maxicoffee.domains
2025-02-17 12:02:56 +01:00
parent 33f5a5568a
commit 668702b1fb
20 changed files with 994 additions and 127 deletions

View File

@@ -0,0 +1,9 @@
export class GetChapterContext {
constructor(readerRepository) {
this.readerRepository = readerRepository;
}
async execute(chapterId) {
return await this.readerRepository.getChapterContext(chapterId);
}
}

View File

@@ -0,0 +1,9 @@
export class GetPage {
constructor(readerRepository) {
this.readerRepository = readerRepository;
}
async execute(chapterId, pageNumber) {
return await this.readerRepository.getPage(chapterId, pageNumber);
}
}

View File

@@ -0,0 +1,9 @@
export class GetPages {
constructor(readerRepository) {
this.readerRepository = readerRepository;
}
async execute(chapterId) {
return await this.readerRepository.getPages(chapterId);
}
}