Line data Source code
1 4 : (ns matchscore.domain.team.query
2 : (:require
3 : [matchscore.domain.team.repository.postgres :as postgres-repo]))
4 :
5 :
6 4 : (defn get-team
7 : "Retrieves a team by ID. Returns Team map or nil."
8 : [repo id]
9 4 : (postgres-repo/find-by-id repo id))
10 :
11 :
12 4 : (defn get-teams-by-ids
13 : "Retrieves participants by multiple IDs. Returns seq."
14 : [repo ids]
15 4 : (postgres-repo/find-by-ids repo ids))
16 :
17 :
18 4 : (defn search-teams
19 : "Search teams by filters and pagination. Returns paginated result."
20 : [repo filters pagination]
21 5 : (postgres-repo/search repo filters pagination))
|