add new handlers for event and responsible tables
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
package models
|
||||
|
||||
type Attendees struct {
|
||||
FirstName int `json:"firstName"`
|
||||
LastName string `json:"lastName"`
|
||||
}
|
@@ -1,9 +1,9 @@
|
||||
package models
|
||||
|
||||
type Event struct {
|
||||
Id int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Date string `json:"date"`
|
||||
Attendees []Attendees `json:"attendees"`
|
||||
Count int `json:"count"`
|
||||
Id int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Date string `json:"date"`
|
||||
Attendees []Person `json:"attendees"`
|
||||
Count int `json:"count"`
|
||||
}
|
||||
|
7
models/person.go
Normal file
7
models/person.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package models
|
||||
|
||||
type Person struct {
|
||||
Id int `json:"id,omitEmpty"`
|
||||
FirstName string `json:"firstName"`
|
||||
LastName string `json:"lastName"`
|
||||
}
|
Reference in New Issue
Block a user