[golang] finished implementing procument contracts
This commit is contained in:
parent
40c4a8df15
commit
e887213aff
15 changed files with 252 additions and 56 deletions
|
@ -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"`
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package model
|
||||
|
||||
type Inventory struct {
|
||||
type InventoryItem struct {
|
||||
//Description string `json:"description"`
|
||||
Units int `json:"units"`
|
||||
//Name string `json:"name"`
|
||||
|
|
|
@ -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"`
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue