feat: implement table distribution logic and update UI for match assignments
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 43s

This commit is contained in:
Torsten Schulz (local)
2026-05-18 00:06:56 +02:00
parent 697e67d46e
commit 040e758044
4 changed files with 125 additions and 20 deletions

View File

@@ -156,10 +156,10 @@ class TournamentsApi(
}
}
suspend fun distributeTables(body: TournamentClubTournamentBody) {
client.http.post("/api/tournament/matches/distribute") {
suspend fun distributeTables(body: TournamentClubTournamentBody): de.tsschulz.tt_tagebuch.shared.api.models.DistributeTablesResponseDto {
return client.http.post("/api/tournament/matches/distribute") {
setBody(body)
}
}.body()
}
suspend fun getGroups(clubId: Int, tournamentId: Int): JsonElement {

View File

@@ -284,6 +284,12 @@ data class TournamentMatchDto(
val tournamentResults: List<TournamentMatchSetResultDto>? = null,
)
@Serializable
data class DistributeTablesResponseDto(
val updated: List<TournamentMatchDto> = emptyList(),
val message: String? = null,
)
@Serializable
data class TournamentAddMatchResultBody(
val clubId: Int,