feat(admin-borrows): add search endpoint replacing getAll

Replace the simple \"get all borrows\" endpoint with a search-based
approach supporting queries by book name, author, username, and role.

- Change endpoint from GET /getall to GET /search?query=xxx
- Add search service implementation using QueryWrapper with LIKE
  predicates across Book, User, and BorrowRecord tables
- Use kotlinx-coroutines for parallel async data fetching per result
- Add kotlinx-coroutines-core and kotlinx-coroutines-reactor deps
This commit is contained in:
2026-05-23 13:06:47 +08:00
parent 32aed36ebf
commit f73e0e3cba
6 changed files with 146 additions and 147 deletions
+2
View File
@@ -22,6 +22,8 @@ repositories {
dependencies {
implementation("org.springframework.boot:spring-boot-starter")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:1.10.2")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.aspectj:aspectjweaver")
implementation("org.springframework.security:spring-security-crypto")