feat(docs): First model for swagger
This commit is contained in:
19
models/contract.go
Normal file
19
models/contract.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user