diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-11-07 11:35:00 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-07 11:35:00 +0300 |
| commit | c6cfaa59b0d5b005966355410abd745268a236e4 (patch) | |
| tree | d7a382f5537c5f298d6cbeb99fadd9dbac43b6b2 /backend/models/models.go | |
| parent | feat: inline parser instead of executable (#113) (diff) | |
| download | lphub-c6cfaa59b0d5b005966355410abd745268a236e4.tar.gz lphub-c6cfaa59b0d5b005966355410abd745268a236e4.tar.bz2 lphub-c6cfaa59b0d5b005966355410abd745268a236e4.zip | |
fix: getplayersummaries cant unmarshal when player is in game (#131)
Diffstat (limited to 'backend/models/models.go')
| -rw-r--r-- | backend/models/models.go | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/backend/models/models.go b/backend/models/models.go index 3aa2e9c..bf3ac86 100644 --- a/backend/models/models.go +++ b/backend/models/models.go | |||
| @@ -122,25 +122,8 @@ type Pagination struct { | |||
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | type PlayerSummaries struct { | 124 | type PlayerSummaries struct { |
| 125 | SteamId string `json:"steamid"` | 125 | SteamId string `json:"steamid"` |
| 126 | CommunityVisibilityState int `json:"communityvisibilitystate"` | 126 | PersonaName string `json:"personaname"` |
| 127 | ProfileState int `json:"profilestate"` | 127 | AvatarFull string `json:"avatarfull"` |
| 128 | PersonaName string `json:"personaname"` | 128 | LocCountryCode string `json:"loccountrycode"` |
| 129 | LastLogOff int `json:"lastlogoff"` | ||
| 130 | ProfileUrl string `json:"profileurl"` | ||
| 131 | Avatar string `json:"avatar"` | ||
| 132 | AvatarMedium string `json:"avatarmedium"` | ||
| 133 | AvatarFull string `json:"avatarfull"` | ||
| 134 | PersonaState int `json:"personastate"` | ||
| 135 | |||
| 136 | CommentPermission int `json:"commentpermission"` | ||
| 137 | RealName string `json:"realname"` | ||
| 138 | PrimaryClanId string `json:"primaryclanid"` | ||
| 139 | TimeCreated int `json:"timecreated"` | ||
| 140 | LocCountryCode string `json:"loccountrycode"` | ||
| 141 | LocStateCode string `json:"locstatecode"` | ||
| 142 | LocCityId int `json:"loccityid"` | ||
| 143 | GameId int `json:"gameid"` | ||
| 144 | GameExtraInfo string `json:"gameextrainfo"` | ||
| 145 | GameServerIp string `json:"gameserverip"` | ||
| 146 | } | 129 | } |