diff options
author | Julien Dessaux | 2025-02-12 23:55:18 +0100 |
---|---|---|
committer | Julien Dessaux | 2025-02-12 23:55:18 +0100 |
commit | 01263017fcd03fa9560ddb8a5013fdf786c7d609 (patch) | |
tree | 0179ae4f3d013f26f49182aecef65febb1fd56dc /golang/pkg/model/transaction.go | |
parent | [golang] refactor ships api (diff) | |
download | spacetraders-01263017fcd03fa9560ddb8a5013fdf786c7d609.tar.gz spacetraders-01263017fcd03fa9560ddb8a5013fdf786c7d609.tar.bz2 spacetraders-01263017fcd03fa9560ddb8a5013fdf786c7d609.zip |
[golang] implement ship refueling
Diffstat (limited to '')
-rw-r--r-- | golang/pkg/model/transaction.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/golang/pkg/model/transaction.go b/golang/pkg/model/transaction.go new file mode 100644 index 0000000..ed98636 --- /dev/null +++ b/golang/pkg/model/transaction.go @@ -0,0 +1,14 @@ +package model + +import "time" + +type Transaction struct { + PricePerUnit int `json:"pricePerUnit"` + ShipSymbol string `json:"shipSymbol"` + Timestamp time.Time `json:"timestamp"` + TotalPrice int `json:"totalPrice"` + TradeSymbol string `json:"tradeSymbol"` + Type string `json:"type"` + Units int `json:"units"` + WaypointSymbol string `json:"waypointSymbol"` +} |