User book API: use a single query with result and count

This commit is contained in:
2026-01-25 00:42:50 +01:00
parent cd2b8a93bb
commit 8584e95ef7
15 changed files with 63 additions and 161 deletions

View File

@@ -52,4 +52,3 @@ func GetAuthorBooksHandler(ac appcontext.AppContext) {
}
ac.C.JSON(http.StatusOK, dto.BookSearchGet{Books: books, Count: count})
}