summaryrefslogtreecommitdiff
path: root/golang/pkg/model
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--golang/pkg/model/cargo.go6
-rw-r--r--golang/pkg/model/inventory.go2
-rw-r--r--golang/pkg/model/ship.go12
-rw-r--r--golang/pkg/model/shipyard.go10
4 files changed, 15 insertions, 15 deletions
diff --git a/golang/pkg/model/cargo.go b/golang/pkg/model/cargo.go
index bf58204..7bd8db8 100644
--- a/golang/pkg/model/cargo.go
+++ b/golang/pkg/model/cargo.go
@@ -1,7 +1,7 @@
package model
type Cargo struct {
- Capacity int `json:"capacity"`
- Inventory []Inventory `json:"inventory"`
- Units int `json:"units"`
+ Capacity int `json:"capacity"`
+ Inventory []InventoryItem `json:"inventory"`
+ Units int `json:"units"`
}
diff --git a/golang/pkg/model/inventory.go b/golang/pkg/model/inventory.go
index d685250..dfb28f8 100644
--- a/golang/pkg/model/inventory.go
+++ b/golang/pkg/model/inventory.go
@@ -1,6 +1,6 @@
package model
-type Inventory struct {
+type InventoryItem struct {
//Description string `json:"description"`
Units int `json:"units"`
//Name string `json:"name"`
diff --git a/golang/pkg/model/ship.go b/golang/pkg/model/ship.go
index 73244d4..6bdfa81 100644
--- a/golang/pkg/model/ship.go
+++ b/golang/pkg/model/ship.go
@@ -3,14 +3,14 @@ package model
type Ship struct {
Cargo *Cargo `json:"cargo"`
Cooldown *Cooldown `json:"cooldown"`
- //// crew
- //// engine
- //// frame
+ // crew
+ // engine
+ // frame
Fuel *Fuel `json:"fuel"`
- //// modules
- //// mounts
+ // modules
+ // mounts
Nav *Nav `json:"nav"`
- //// reactor
+ // reactor
//registration: Registration;
Symbol string `json:"symbol"`
}
diff --git a/golang/pkg/model/shipyard.go b/golang/pkg/model/shipyard.go
index 2ba2e95..4140d44 100644
--- a/golang/pkg/model/shipyard.go
+++ b/golang/pkg/model/shipyard.go
@@ -3,11 +3,11 @@ 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"`
+ ModificationFee int `json:"modificationFee"`
+ Symbol string `json:"symbol"`
+ ShipTypes []CommonType `json:"shipTypes"`
+ //Transactions []ShipyardTransaction `json:"transactions"`
+ Ships []ShipyardShip `json:"ships"`
}
type ShipyardShip struct {