From 9686d0d66064d40dcd7f1647d6c75577ad5ef8c0 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Sun, 21 Apr 2024 22:59:20 +0100 Subject: [PATCH] Create ServiceDetail struct type --- pkg/database/timetable.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkg/database/timetable.go b/pkg/database/timetable.go index da8d266..d698086 100644 --- a/pkg/database/timetable.go +++ b/pkg/database/timetable.go @@ -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"`