diff options
author | Julien Dessaux | 2025-02-17 00:40:43 +0100 |
---|---|---|
committer | Julien Dessaux | 2025-02-17 00:40:43 +0100 |
commit | bd2fb50c819c2b180758308ef3751e7ea73e6ab7 (patch) | |
tree | 19632f7098691a1147357039a5efedf7c40a8d53 /golang/pkg/model/shipyard.go | |
parent | [golang] handle paginated requests (diff) | |
download | spacetraders-bd2fb50c819c2b180758308ef3751e7ea73e6ab7.tar.gz spacetraders-bd2fb50c819c2b180758308ef3751e7ea73e6ab7.tar.bz2 spacetraders-bd2fb50c819c2b180758308ef3751e7ea73e6ab7.zip |
[golang] implement shipyards visits
Diffstat (limited to '')
-rw-r--r-- | golang/pkg/model/shipyard.go | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/golang/pkg/model/shipyard.go b/golang/pkg/model/shipyard.go new file mode 100644 index 0000000..2ba2e95 --- /dev/null +++ b/golang/pkg/model/shipyard.go @@ -0,0 +1,35 @@ +package model + +import "time" + +type Shipyard struct { + ModificationFee int `json:"modificationFee"` + Symbol string `json:"symbol"` + ShipTypes []CommonType `json:"shipTypes"` + Transactions []ShipyardTransaction `json:"transactions"` + Ships []ShipyardShip `json:"ships"` +} + +type ShipyardShip struct { + Activity string `json:"activity"` + // crew + //Description string `json:"description"` + // engine + // frame + // modules + // mounts + //Name string `json:"name"` + PurchasePrice int `json:"purchasePrice"` + // reactor + Supply string `json:"supply"` + Type string `json:"type"` +} + +type ShipyardTransaction struct { + AgentSymbol string `json:"agentSymbol"` + Price int `json:"price"` + ShipSymbol string `json:"shipSymbol"` + ShipType string `json:"shipType"` + Timestamp time.Time `json:"timestamp"` + WaypointSymbol string `json:"waypointSymbol"` +} |