36 lines
1.3 KiB
Go
36 lines
1.3 KiB
Go
package database
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Stop struct {
|
|
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"`
|
|
}
|
|
|
|
type Service struct {
|
|
TransactionType string `json:"transactionType,omitempty"`
|
|
StpIndicator string `json:"stpIndicator,omitempty"`
|
|
Vstp bool `json:"vstp"`
|
|
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"`
|
|
}
|
|
|
|
type DeleteQuery struct {
|
|
TrainUid string `json:"trainUid"`
|
|
ScheduleStartDate time.Time `json:"scheduleStartDate"`
|
|
StpIndicator string `json:"stpIndicator"`
|
|
}
|