Create ServiceDetail struct type
This commit is contained in:
parent
b8aa88546f
commit
9686d0d660
@ -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"`
|
||||
|
Loading…
Reference in New Issue
Block a user