summaryrefslogtreecommitdiff
path: root/golang/pkg/model/trade_good.go
diff options
context:
space:
mode:
authorJulien Dessaux2025-02-19 00:19:58 +0100
committerJulien Dessaux2025-02-19 00:19:58 +0100
commit312ef2eb5792cd145d6829e2abc017dd304c5819 (patch)
treecf782f8356bea73eacb5495631794cf5584e00cb /golang/pkg/model/trade_good.go
parent[golang] update error handling and bootstrap trade procurement (diff)
downloadspacetraders-312ef2eb5792cd145d6829e2abc017dd304c5819.tar.gz
spacetraders-312ef2eb5792cd145d6829e2abc017dd304c5819.tar.bz2
spacetraders-312ef2eb5792cd145d6829e2abc017dd304c5819.zip
[golang] implement trading and contracting
Diffstat (limited to 'golang/pkg/model/trade_good.go')
-rw-r--r--golang/pkg/model/trade_good.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/golang/pkg/model/trade_good.go b/golang/pkg/model/trade_good.go
new file mode 100644
index 0000000..602f667
--- /dev/null
+++ b/golang/pkg/model/trade_good.go
@@ -0,0 +1,11 @@
+package model
+
+type TradeGood struct {
+ Activity string `json:"activity"`
+ PurchasePrice int `json:"purchasePrice"`
+ SellPrice int `json:"sellPrice"`
+ Supply string `json:"supply"`
+ Symbol string `json:"symbol"`
+ TradeVolume int `json:"tradeVolume"`
+ Type string `json:"type"`
+}