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

@@ -13,7 +13,7 @@ import (
)
type bookAuthorGetResult struct {
Count int64 `json:"count"`
Count int64 `json:"count"`
Books []bookAuthorGet `json:"books"`
}