28 lines
825 B
Go
28 lines
825 B
Go
package response
|
|
|
|
type Event struct {
|
|
ID int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
Status string `json:"status"`
|
|
Description string `json:"description"`
|
|
StartDate string `json:"start_date"`
|
|
EndDate string `json:"end_date"`
|
|
StartTime string `json:"start_time"`
|
|
EndTime string `json:"end_time"`
|
|
Location string `json:"location"`
|
|
Level string `json:"level"`
|
|
Included []string `json:"included"`
|
|
Price float64 `json:"price"`
|
|
Paid bool `json:"paid"`
|
|
LocationID *int64 `json:"location_id"`
|
|
CreatedAt string `json:"created_at"`
|
|
UpdatedAt string `json:"updated_at"`
|
|
}
|
|
|
|
type EventList struct {
|
|
Events []Event `json:"events"`
|
|
Total int64 `json:"total"`
|
|
Limit int `json:"limit"`
|
|
Offset int `json:"offset"`
|
|
}
|