summaryrefslogtreecommitdiff
path: root/golang/pkg/model/agent.go
diff options
context:
space:
mode:
authorJulien Dessaux2024-05-30 08:05:03 +0200
committerJulien Dessaux2024-05-30 08:05:03 +0200
commit4069b524b2c607dcf8fc1e378ae86077f8a89234 (patch)
tree3e42383cafb4a7f24252d4bc55b2481c3f9b014d /golang/pkg/model/agent.go
parent[golang] added ships first api calls (diff)
downloadspacetraders-4069b524b2c607dcf8fc1e378ae86077f8a89234.tar.gz
spacetraders-4069b524b2c607dcf8fc1e378ae86077f8a89234.tar.bz2
spacetraders-4069b524b2c607dcf8fc1e378ae86077f8a89234.zip
[golang] simplified the api design some moreHEADmaster
Diffstat (limited to 'golang/pkg/model/agent.go')
-rw-r--r--golang/pkg/model/agent.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/golang/pkg/model/agent.go b/golang/pkg/model/agent.go
new file mode 100644
index 0000000..1c2b80b
--- /dev/null
+++ b/golang/pkg/model/agent.go
@@ -0,0 +1,10 @@
+package model
+
+type Agent struct {
+ AccountID string `json:"accountId"`
+ Credits int `json:"credits"`
+ Headquarters string `json:"headquarters"`
+ ShipCount int `json:"shipCount"`
+ StartingFaction string `json:"startingFaction"`
+ Symbol string `json:"symbol"`
+}