From ebfa9e1a72b10f15ff30329bf31697eaeb71ad5e Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 14 May 2021 20:13:31 +0200 Subject: Switched to int32 as esi scheme dictates --- models.go | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'models.go') 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"` } -- cgit v1.1