diff options
Diffstat (limited to 'backend/models/models.go')
| -rw-r--r-- | backend/models/models.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/backend/models/models.go b/backend/models/models.go index 5ce3ebf..2d14a06 100644 --- a/backend/models/models.go +++ b/backend/models/models.go | |||
| @@ -87,6 +87,30 @@ type ScoreResponse struct { | |||
| 87 | Records any `json:"records"` | 87 | Records any `json:"records"` |
| 88 | } | 88 | } |
| 89 | 89 | ||
| 90 | type PlayerSummaries struct { | ||
| 91 | SteamId string `json:"steamid"` | ||
| 92 | CommunityVisibilityState int `json:"communityvisibilitystate"` | ||
| 93 | ProfileState int `json:"profilestate"` | ||
| 94 | PersonaName string `json:"personaname"` | ||
| 95 | LastLogOff int `json:"lastlogoff"` | ||
| 96 | ProfileUrl string `json:"profileurl"` | ||
| 97 | Avatar string `json:"avatar"` | ||
| 98 | AvatarMedium string `json:"avatarmedium"` | ||
| 99 | AvatarFull string `json:"avatarfull"` | ||
| 100 | PersonaState int `json:"personastate"` | ||
| 101 | |||
| 102 | CommentPermission int `json:"commentpermission"` | ||
| 103 | RealName string `json:"realname"` | ||
| 104 | PrimaryClanId string `json:"primaryclanid"` | ||
| 105 | TimeCreated int `json:"timecreated"` | ||
| 106 | LocCountryCode string `json:"loccountrycode"` | ||
| 107 | LocStateCode string `json:"locstatecode"` | ||
| 108 | LocCityId int `json:"loccityid"` | ||
| 109 | GameId int `json:"gameid"` | ||
| 110 | GameExtraInfo string `json:"gameextrainfo"` | ||
| 111 | GameServerIp string `json:"gameserverip"` | ||
| 112 | } | ||
| 113 | |||
| 90 | func ErrorResponse(message string) Response { | 114 | func ErrorResponse(message string) Response { |
| 91 | return Response{ | 115 | return Response{ |
| 92 | Success: false, | 116 | Success: false, |