fix:#82 fixed fetching with main page fetch for sport course link list

This commit is contained in:
masterElmar
2023-12-12 13:16:10 +01:00
parent 184dc70be4
commit 31c27635d3
2 changed files with 98 additions and 70 deletions

View File

@@ -0,0 +1,49 @@
package main
import "time"
// MODELS
// Event represents the overall event details.
type Event struct {
Title string
Details EventDetails
AdditionalNote string
}
// EventDetails represents detailed information about the event.
type EventDetails struct {
DateRange DateRange
Cycle string
Gender string
CourseLead CourseLead
Location Location
Participants Participants
Cost string
Type string
}
// DateRange represents a start and end date.
type DateRange struct {
Start time.Time
End time.Time
}
// CourseLead represents a person with a name and a contact link.
type CourseLead struct {
Name string
Link string
}
// Location represents the location of the event.
type Location struct {
Name string
Address string
}
// Participants represents the participants' details.
type Participants struct {
Bookings int
TotalPlaces int
WaitList int
}