feat(docs): First model for swagger

This commit is contained in:
2024-12-02 17:26:03 +01:00
parent 7d571ad46b
commit 13e9c88a8e
5 changed files with 173 additions and 0 deletions

19
models/contract.go Normal file
View File

@@ -0,0 +1,19 @@
package models
type Contract struct {
Runners []Runner `json:"runners"`
}
type Runner struct {
ID int `json:"id"`
FirstName string `json:"first_name"`
MiddleName string `json:"middle_name"`
LastName string `json:"last_name"`
Group Group `json:"group"`
}
type Group struct {
ID int `json:"id"`
Name string `json:"name"`
ParentGroup *Group `json:"parent_group"`
}