feat: init api
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package rest
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
type Init struct {
|
||||
Races []Race `json:"races" binding:"required,gte=10"`
|
||||
}
|
||||
|
||||
type Race struct {
|
||||
Name string `json:"name" binding:"required,notblank"`
|
||||
}
|
||||
|
||||
type InitResponse struct {
|
||||
UUID uuid.UUID `json:"uuid"`
|
||||
}
|
||||
Reference in New Issue
Block a user