status after 3h & 30min

This commit is contained in:
2025-02-07 17:14:01 +01:00
parent 5f8842b140
commit 6cfea2e8dc
13 changed files with 337 additions and 36 deletions

View File

@ -2,10 +2,20 @@
// This file is automatically generated. DO NOT EDIT
import {model} from '../models';
export function DeleteParticipat(arg1:model.Participant):Promise<void>;
export function FillRandom(arg1:model.Tournament):Promise<void>;
export function GetGames():Promise<Array<model.Game>>;
export function GetParticipants():Promise<Array<model.Participant>>;
export function GetTournament(arg1:number):Promise<model.Tournament>;
export function GetTournaments():Promise<Array<model.Tournament>>;
export function RemoveParticipantFromTournament(arg1:model.Participant,arg2:model.Tournament):Promise<void>;
export function SaveParticipant(arg1:model.Participant):Promise<void>;
export function SaveTournament(arg1:model.Tournament):Promise<void>;

View File

@ -2,10 +2,22 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function DeleteParticipat(arg1) {
return window['go']['main']['App']['DeleteParticipat'](arg1);
}
export function FillRandom(arg1) {
return window['go']['main']['App']['FillRandom'](arg1);
}
export function GetGames() {
return window['go']['main']['App']['GetGames']();
}
export function GetParticipants() {
return window['go']['main']['App']['GetParticipants']();
}
export function GetTournament(arg1) {
return window['go']['main']['App']['GetTournament'](arg1);
}
@ -14,6 +26,14 @@ export function GetTournaments() {
return window['go']['main']['App']['GetTournaments']();
}
export function RemoveParticipantFromTournament(arg1, arg2) {
return window['go']['main']['App']['RemoveParticipantFromTournament'](arg1, arg2);
}
export function SaveParticipant(arg1) {
return window['go']['main']['App']['SaveParticipant'](arg1);
}
export function SaveTournament(arg1) {
return window['go']['main']['App']['SaveTournament'](arg1);
}

View File

@ -52,7 +52,7 @@ export namespace model {
Title: string;
GameID: number;
Game: Game;
Size?: number;
Size: number;
TournamentState: number;
WinnierParticipantID: number;
WinnierParticipant: Participant;
@ -105,7 +105,7 @@ export namespace model {
// Go type: gorm
DeletedAt: any;
Name: string;
IsTemporary: boolean;
Size?: boolean;
IsTeam: boolean;
Tournaments: Tournament[];
@ -120,7 +120,7 @@ export namespace model {
this.UpdatedAt = this.convertValues(source["UpdatedAt"], null);
this.DeletedAt = this.convertValues(source["DeletedAt"], null);
this.Name = source["Name"];
this.IsTemporary = source["IsTemporary"];
this.Size = source["Size"];
this.IsTeam = source["IsTeam"];
this.Tournaments = this.convertValues(source["Tournaments"], Tournament);
}