go-types/pkg/database/timetable.go

36 lines
1.3 KiB
Go
Raw Normal View History

2023-07-17 12:20:31 +01:00
package database
import (
"time"
)
type Stop struct {
2023-07-20 21:38:35 +01:00
PublicDeparture string `json:"publicDeparture,omitempty"`
WttDeparture string `json:"wttDeparture,omitempty"`
PublicArrival string `json:"publicArrival,omitempty"`
WttArrival string `json:"wttArrival,omitempty"`
IsPublic bool `json:"isPublic,omitempty"`
Tiploc string `json:"tiploc,omitempty"`
2023-07-17 12:20:31 +01:00
}
type Service struct {
2023-07-20 21:38:35 +01:00
TransactionType string `json:"transactionType,omitempty"`
StpIndicator string `json:"stpIndicator,omitempty"`
2023-07-21 09:29:11 +01:00
Vstp bool `json:"vstp"`
2023-07-20 21:38:35 +01:00
Operator string `json:"operator,omitempty"`
TrainUid string `json:"trainUid,omitempty"`
Headcode string `json:"headcode,omitempty"`
PowerType string `json:"powerType,omitempty"`
PlanSpeed int32 `json:"planSpeed,omitempty"`
ScheduleStartDate time.Time `json:"scheduleStartDate,omitempty"`
ScheduleEndDate time.Time `json:"scheduleEndDate,omitempty"`
DaysRun []string `json:"daysRun,omitempty"`
Stops []Stop `json:"stops,omitempty"`
}
2023-07-27 20:14:57 +01:00
type DeleteQuery struct {
2023-07-27 20:20:11 +01:00
TrainUid string `json:"trainUid"`
ScheduleStartDate time.Time `json:"scheduleStartDate"`
StpIndicator string `json:"stpIndicator"`
2023-07-27 20:14:57 +01:00
}