update
This commit is contained in:
@@ -84,13 +84,30 @@ type FinalGroups struct {
|
||||
}
|
||||
|
||||
type StateResponse struct {
|
||||
Competition CompetitionMeta `json:"competition"`
|
||||
Players []Player `json:"players"`
|
||||
Scores map[string]map[string]int `json:"scores"`
|
||||
ScoreProofs map[string]map[string]string `json:"scoreProofs,omitempty"`
|
||||
Settings AppSettings `json:"settings"`
|
||||
Derived DerivedState `json:"derived"`
|
||||
ServerTime string `json:"serverTime"`
|
||||
Competition CompetitionMeta `json:"competition"`
|
||||
Players []Player `json:"players"`
|
||||
Scores map[string]map[string]int `json:"scores"`
|
||||
ScoreProofs map[string]map[string]string `json:"scoreProofs,omitempty"`
|
||||
PositionBoards map[string]map[string]PositionSlot `json:"positionBoards"`
|
||||
Settings AppSettings `json:"settings"`
|
||||
Derived DerivedState `json:"derived"`
|
||||
CurrentStage *StageSessionState `json:"current_stage"`
|
||||
LastStage *StageSessionState `json:"last_stage"`
|
||||
ServerTime string `json:"serverTime"`
|
||||
}
|
||||
|
||||
type StageSessionState struct {
|
||||
ID int `json:"id"`
|
||||
Phase string `json:"phase"`
|
||||
GroupKey string `json:"group"`
|
||||
Round int `json:"round"`
|
||||
StartedAt string `json:"startedAt"`
|
||||
EndedAt string `json:"endedAt,omitempty"`
|
||||
}
|
||||
|
||||
type PositionSlot struct {
|
||||
GroupKey string `json:"groupKey"`
|
||||
Position int `json:"position"`
|
||||
}
|
||||
|
||||
type AppSettings struct {
|
||||
@@ -170,6 +187,16 @@ type AutoGroupPlayersRequest struct {
|
||||
Groups []string `json:"groups"`
|
||||
}
|
||||
|
||||
type PositionBoardUpdateRequest struct {
|
||||
Slots []PositionBoardSlotInput `json:"slots"`
|
||||
}
|
||||
|
||||
type PositionBoardSlotInput struct {
|
||||
PlayerID int `json:"playerId"`
|
||||
GroupKey string `json:"groupKey"`
|
||||
Position int `json:"position"`
|
||||
}
|
||||
|
||||
type ScoreAdviceResponse struct {
|
||||
Stage string `json:"stage"`
|
||||
PlayerID int `json:"playerId"`
|
||||
@@ -177,3 +204,9 @@ type ScoreAdviceResponse struct {
|
||||
Reason string `json:"reason"`
|
||||
GeneratedAt string `json:"generatedAt"`
|
||||
}
|
||||
|
||||
type StageControlStartRequest struct {
|
||||
Phase string `json:"phase"`
|
||||
GroupKey string `json:"group"`
|
||||
Round int `json:"round"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user