Create ServiceDetail struct type

This commit is contained in:
Fred Boniface 2024-04-21 22:59:20 +01:00
parent b8aa88546f
commit 9686d0d660

View File

@ -35,6 +35,15 @@ type Service struct { // Consider including catering, train class etc. here too.
Stops []Stop `json:"stops,omitempty"`
}
// Contains service detail booleans
type ServiceDetail struct {
FirstClass bool `json:"firstClass"`
Catering bool `json:"catering"`
Sleeper bool `json:"sleeper"`
Vstp bool `json:"vstp"`
Guard bool `json:"guard"`
}
type DeleteQuery struct {
TrainUid string `json:"trainUid"`
ScheduleStartDate time.Time `json:"scheduleStartDate"`