feat: implement table distribution logic and update UI for match assignments
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 43s
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 43s
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user