Remove game tags and persona/nucleus ids everywhere. Forward score-fetch statuscode. Fix login issue.

This commit is contained in:
MaxJa4
2024-01-23 18:40:39 +01:00
parent 2139b83174
commit fa5728fba2
9 changed files with 91 additions and 195 deletions

View File

@@ -1,10 +1,8 @@
package models
type Player struct {
ID uint `json:"id" gorm:"primary_key"`
Name string `json:"name" gorm:"not null"`
PersonaID uint `json:"persona_id" gorm:"not null"`
NucleusID uint `json:"nucleus_id" gorm:"not null"`
ClanID uint `json:"clan_id" gorm:"not null"`
Clan Clan `gorm:"references:ID"`
ID uint `json:"id" gorm:"primary_key"`
Name string `json:"name" gorm:"not null"`
ClanID uint `json:"clan_id" gorm:"not null"`
Clan Clan `gorm:"references:ID"`
}

View File

@@ -14,10 +14,3 @@ type Weapon struct {
ShotsHit int `json:"shotsHit"`
Accuracy float64 `json:"-"`
}
type PlayerIDsJSON struct {
Results []struct {
PersonaID uint `json:"personaId"`
NucleusID uint `json:"nucleusId"`
} `json:"results"`
}