added rounds endpoint

This commit is contained in:
2021-10-17 17:44:57 +02:00
parent 4c23d49a22
commit f8579f9768
2 changed files with 89 additions and 30 deletions

View File

@@ -153,26 +153,19 @@ type StatsResponse struct {
type PlayerResponse struct {
SteamID64 uint64 `json:"steamid64,string"`
Name string `json:"name"`
Avatar string `json:"avatar"`
Name string `json:"name,omitempty"`
Avatar string `json:"avatar,omitempty"`
VAC bool `json:"vac"`
VACDate *time.Time `json:"vac_date,omitempty"`
Tracked bool `json:"tracked"`
VanityURL string `json:"vanity_url,omitempty"`
MatchStats MatchStats `json:"match_stats,omitempty"`
MatchStats *MatchStats `json:"match_stats,omitempty"`
Matches []*MatchResponse `json:"matches,omitempty"`
}
type EqResponse struct {
Victim uint64 `json:"victim"`
Type int `json:"type"`
HitGroup int `json:"hit_group"`
Dmg uint `json:"dmg"`
}
type WeaponResponse struct {
Player *PlayerResponse `json:"player"`
Eq []*EqResponse `json:"eq,omitempty"`
Player *PlayerResponse `json:"player"`
Eq map[string][][]int `json:"eq,omitempty"`
}
type MatchResponse struct {