[golang] added ships first api calls
This commit is contained in:
parent
0d00bf9fd2
commit
860984057d
9 changed files with 164 additions and 0 deletions
17
golang/pkg/model/route.go
Normal file
17
golang/pkg/model/route.go
Normal file
|
@ -0,0 +1,17 @@
|
|||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
type Route struct {
|
||||
Arrival time.Time `json:"arrival"`
|
||||
DepartureTime time.Time `json:"departureTime"`
|
||||
Destination RouteEndpoint `json:"destination"`
|
||||
}
|
||||
|
||||
type RouteEndpoint struct {
|
||||
Type string `json:"type"`
|
||||
Symbol string `json:"symbol"`
|
||||
SystemSymbol string `json:"systemSymbol"`
|
||||
X int `json:"x"`
|
||||
Y int `json:"y"`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue