Добавлено отображение общего количества книг в серии, без ее раскрытия

This commit is contained in:
Book Pauk
2022-11-28 16:58:32 +07:00
parent af575a87a2
commit 80b21371a4
6 changed files with 110 additions and 6 deletions

View File

@@ -89,6 +89,8 @@ class WebSocketController {
await this.search(req, ws); break;
case 'get-author-book-list':
await this.getAuthorBookList(req, ws); break;
case 'get-author-series-list':
await this.getAuthorSeriesList(req, ws); break;
case 'get-series-book-list':
await this.getSeriesBookList(req, ws); break;
case 'get-genre-tree':
@@ -169,6 +171,12 @@ class WebSocketController {
this.send(result, req, ws);
}
async getAuthorSeriesList(req, ws) {
const result = await this.webWorker.getAuthorSeriesList(req.authorId);
this.send(result, req, ws);
}
async getSeriesBookList(req, ws) {
const result = await this.webWorker.getSeriesBookList(req.series);