diff --git a/app/v1/user.go b/app/v1/user.go index 22daaaa..7cc610c 100644 --- a/app/v1/user.go +++ b/app/v1/user.go @@ -29,6 +29,44 @@ FROM users INNER JOIN users_stats ON users.id=users_stats.id ` +type userNotFullResponseLmao struct { + Id int `json:"id"` + Username string `json:"username"` + UsernameAKA string `json:"username_aka"` + RegisteredOn common.UnixTimestamp `json:"registered_on"` + Privileges uint64 `json:"privileges"` + LatestActivity common.UnixTimestamp `json:"latest_activity"` + Country string `json:"country"` + UserColor string `json:"user_color"` + RankedScoreStd uint64 `json:"ranked_score_std"` + TotalScoreStd uint64 `json:"total_score_std"` + PlaycountStd int `json:"playcount_std"` + ReplaysWatchedStd int `json:"replays_watched_std"` + TotalHitsStd int `json:"total_hits_std"` + PpStd int `json:"pp_std"` + RankedScoreTaiko uint64 `json:"ranked_score_taiko"` + TotalScoreTaiko uint64 `json:"total_score_taiko"` + PlaycountTaiko int `json:"playcount_taiko"` + ReplaysWatchedTaiko int `json:"replays_watched_taiko"` + TotalHitsTaiko int `json:"total_hits_taiko"` + PpTaiko int `json:"pp_taiko"` + RankedScoreCtb uint64 `json:"ranked_score_ctb"` + TotalScoreCtb uint64 `json:"total_score_ctb"` + PlaycountCtb int `json:"playcount_ctb"` + ReplaysWatchedCtb int `json:"replays_watched_ctb"` + TotalHitsCtb int `json:"total_hits_ctb"` + PpCtb int `json:"pp_ctb"` + RankedScoreMania uint64 `json:"ranked_score_mania"` + TotalScoreMania uint64 `json:"total_score_mania"` + PlaycountMania int `json:"playcount_mania"` + ReplaysWatchedMania int `json:"replays_watched_mania"` + TotalHitsMania int `json:"total_hits_mania"` + PpMania int `json:"pp_mania"` + // STD clappedModeData `json:"std"` + // Taiko clappedModeData `json:"taiko"` + // CTB clappedModeData `json:"ctb"` + // Mania clappedModeData `json:"mania"` +} // UsersGET is the API handler for GET /users func UsersGET(md common.MethodData) common.CodeMessager {