1
0
Fork 0

[golang] added ships first api calls

This commit is contained in:
Julien Dessaux 2024-05-29 23:08:24 +02:00
parent 0d00bf9fd2
commit 860984057d
Signed by: adyxax
GPG key ID: F92E51B86E07177E
9 changed files with 164 additions and 0 deletions

17
golang/pkg/model/route.go Normal file
View 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"`
}