Add PIS and ReasonCode types
This commit is contained in:
parent
023c82472d
commit
ab34be5063
8
pkg/database/pis.go
Normal file
8
pkg/database/pis.go
Normal file
@ -0,0 +1,8 @@
|
||||
package database
|
||||
|
||||
type PIS struct {
|
||||
Code string `json:"code"`
|
||||
Stops []string `json:"stops"`
|
||||
Tiplocs []string `json:"tiplocs"`
|
||||
Operator string `json:"operator"`
|
||||
}
|
7
pkg/database/reasonCodes.go
Normal file
7
pkg/database/reasonCodes.go
Normal file
@ -0,0 +1,7 @@
|
||||
package database
|
||||
|
||||
type ReasonCode struct {
|
||||
Code string `json:"code"`
|
||||
Late string `json:"lateReason"`
|
||||
Cancel string `json:"cancReason"`
|
||||
}
|
7
pkg/upstreamApi/pis.go
Normal file
7
pkg/upstreamApi/pis.go
Normal file
@ -0,0 +1,7 @@
|
||||
package upstreamApi
|
||||
|
||||
type PIS struct {
|
||||
Code string `json:"code"`
|
||||
Stops []string `json:"stops"`
|
||||
Operator string `json:"operator,omitempty"`
|
||||
}
|
15
pkg/upstreamApi/reasonCodes.go
Normal file
15
pkg/upstreamApi/reasonCodes.go
Normal file
@ -0,0 +1,15 @@
|
||||
package upstreamApi
|
||||
|
||||
type ReasonCodeObject struct {
|
||||
GetReasonCodeListResult Reasons `json:"GetReasonCodeListResult"`
|
||||
}
|
||||
|
||||
type Reasons struct {
|
||||
ReasonList []ReasonCode `json:"reason"`
|
||||
}
|
||||
|
||||
type ReasonCode struct {
|
||||
Code string `json:"code"`
|
||||
Late string `json:"lateReason"`
|
||||
Cancel string `json:"cancReason"`
|
||||
}
|
Loading…
Reference in New Issue
Block a user