Line data Source code
1 4 : (ns matchscore.domain.group-participant.query
2 : (:require
3 : [matchscore.domain.group-participant.repository.postgres :as postgres-repo]))
4 :
5 :
6 4 : (defn get-group-participant
7 : "Retrieves a group participant by ID. Returns GroupParticipant map or nil."
8 : [repo id]
9 4 : (postgres-repo/find-by-id repo id))
10 :
11 :
12 4 : (defn get-group-participants-by-group
13 : "Retrieves all participants in a group. Returns seq."
14 : [repo group-id]
15 4 : (postgres-repo/find-by-group-id repo group-id))
16 :
17 :
18 4 : (defn get-group-participants-by-group-ids
19 : "Retrieves all participants for multiple groups in one batch. Returns seq."
20 : [repo group-ids]
21 4 : (postgres-repo/find-by-group-ids repo group-ids))
22 :
23 :
24 4 : (defn get-group-participants-by-participant
25 : "Retrieves all groups for a participant. Returns seq."
26 : [repo participant-id]
27 4 : (postgres-repo/find-by-participant-id repo participant-id))
28 :
29 :
30 4 : (defn search-group-participants
31 : "Search group participants by filters and pagination. Returns paginated result."
32 : [repo filters pagination]
33 5 : (postgres-repo/search repo filters pagination))
|