From 601e58357514248c8147650adb62762d92d5894a Mon Sep 17 00:00:00 2001 From: Arthur Lefebvre Date: Fri, 23 Jan 2026 14:45:25 +0100 Subject: [PATCH] Search API: use a single query with result and count --- front/src/SearchBook.vue | 10 +-- internal/apitest/search_book_test.go | 111 +++++++++---------------- internal/dto/in.go | 5 ++ internal/dto/out.go | 18 ++++ internal/inventaire/inventaire.go | 2 +- internal/inventaire/inventaire_test.go | 8 +- internal/query/search.go | 21 ++--- internal/routes/booksearchget.go | 60 ++++--------- internal/setup/setup.go | 3 - 9 files changed, 94 insertions(+), 144 deletions(-) create mode 100644 internal/dto/in.go create mode 100644 internal/dto/out.go diff --git a/front/src/SearchBook.vue b/front/src/SearchBook.vue index 4f843a1..b80868a 100644 --- a/front/src/SearchBook.vue +++ b/front/src/SearchBook.vue @@ -1,7 +1,7 @@