game stats shows planes and population

This commit is contained in:
Ilia Denisov
2026-04-26 21:12:51 +02:00
parent fe829285a6
commit b4591cabd4
11 changed files with 84 additions and 22 deletions
+6 -4
View File
@@ -1,9 +1,11 @@
package rest
type Init struct {
Races []Race `json:"races" binding:"required,gte=10"`
type InitRequest struct {
// List of the Races in the Game
Races []InitRace `json:"races" binding:"required,gte=10"`
}
type Race struct {
Name string `json:"name" binding:"required,notblank"`
type InitRace struct {
// Name of the Race
RaceName string `json:"raceName" binding:"required,notblank"`
}