feat: Reader working, some work still need to be done
This commit is contained in:
parent
33f5a5568a
commit
668702b1fb
@@ -0,0 +1,9 @@
|
||||
export class GetChapterContext {
|
||||
constructor(readerRepository) {
|
||||
this.readerRepository = readerRepository;
|
||||
}
|
||||
|
||||
async execute(chapterId) {
|
||||
return await this.readerRepository.getChapterContext(chapterId);
|
||||
}
|
||||
}
|
||||
9
assets/react/app/application/useCases/getPage.js
Normal file
9
assets/react/app/application/useCases/getPage.js
Normal file
@@ -0,0 +1,9 @@
|
||||
export class GetPage {
|
||||
constructor(readerRepository) {
|
||||
this.readerRepository = readerRepository;
|
||||
}
|
||||
|
||||
async execute(chapterId, pageNumber) {
|
||||
return await this.readerRepository.getPage(chapterId, pageNumber);
|
||||
}
|
||||
}
|
||||
9
assets/react/app/application/useCases/getPages.js
Normal file
9
assets/react/app/application/useCases/getPages.js
Normal file
@@ -0,0 +1,9 @@
|
||||
export class GetPages {
|
||||
constructor(readerRepository) {
|
||||
this.readerRepository = readerRepository;
|
||||
}
|
||||
|
||||
async execute(chapterId) {
|
||||
return await this.readerRepository.getPages(chapterId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user