feat: turn generate api

This commit is contained in:
IliaDenisov
2026-02-12 14:27:56 +03:00
parent 67f0fdef61
commit 87291d2760
16 changed files with 192 additions and 51 deletions
-6
View File
@@ -1,7 +1,5 @@
package rest
import "github.com/google/uuid"
type Init struct {
Races []Race `json:"races" binding:"required,gte=10"`
}
@@ -9,7 +7,3 @@ type Init struct {
type Race struct {
Name string `json:"name" binding:"required,notblank"`
}
type InitResponse struct {
UUID uuid.UUID `json:"uuid"`
}