From 01263017fcd03fa9560ddb8a5013fdf786c7d609 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Wed, 12 Feb 2025 23:55:18 +0100 Subject: [golang] implement ship refueling --- golang/pkg/model/transaction.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 golang/pkg/model/transaction.go (limited to 'golang/pkg/model/transaction.go') 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"` +} -- cgit v1.2.3