summaryrefslogtreecommitdiffhomepage
path: root/models.go
diff options
context:
space:
mode:
Diffstat (limited to 'models.go')
-rw-r--r--models.go19
1 files changed, 12 insertions, 7 deletions
diff --git a/models.go b/models.go
index d79850b..7119fa9 100644
--- a/models.go
+++ b/models.go
@@ -4,12 +4,18 @@ import (
"time"
)
+type Vector3 struct {
+ X float64 `json:"x"`
+ Y float64 `json:"y"`
+ Z float64 `json:"z"`
+}
+
type Killmail struct {
- Id uint64 `json:"id"`
+ Id int32 `json:"id"`
Hash string `json:"hash"`
}
-type Team []uint32
+type Team []int32
type Battle struct {
Id string `json:"-"`
@@ -24,11 +30,10 @@ type Battle struct {
type EsiKillmail struct {
SolarSystemId int32 `json:"solar_system_id"`
Victim struct {
- Position struct {
- X float64 `json:"x"`
- Y float64 `json:"y"`
- Z float64 `json:"z"`
- } `json:"position"`
+ Position Vector3 `json:"position"`
+ ShipTypeId int32 `json:"ship_type_id"`
+ CorporationId int32 `json:"corporation_id"`
+ AllianceId int32 `json:"alliance_id"`
} `json:"victim"`
Time time.Time `json:"killmail_time"`
}