diff --git a/service/beatleader/model.go b/service/beatleader/model.go index 2a7114a..8b86aff 100644 --- a/service/beatleader/model.go +++ b/service/beatleader/model.go @@ -238,18 +238,18 @@ func timeConvert(duration time.Duration) string { // ScoreStats 存储分数统计信息 type PlayerData struct { - MapperID int `json:"mapperId"` - Banned bool `json:"banned"` - Inactive bool `json:"inactive"` - BanDescription *string `json:"banDescription"` - ExternalProfileURL string `json:"externalProfileUrl"` - RichBioTimeset int64 `json:"richBioTimeset"` - SpeedrunStart int64 `json:"speedrunStart"` - LinkedIDs LinkedIDs `json:"linkedIds"` - History *string `json:"history"` - Badges []string `json:"badges"` - PinnedScores *string `json:"pinnedScores"` - Changes []Change `json:"changes"` + MapperID int `json:"mapperId"` + Banned bool `json:"banned"` + Inactive bool `json:"inactive"` + // BanDescription *string `json:"banDescription"` + ExternalProfileURL string `json:"externalProfileUrl"` + RichBioTimeset int64 `json:"richBioTimeset"` + SpeedrunStart int64 `json:"speedrunStart"` + LinkedIDs LinkedIDs `json:"linkedIds"` + // History *string `json:"history"` + // Badges []string `json:"badges"` + // PinnedScores *string `json:"pinnedScores"` + // Changes []Change `json:"changes"` AccPp float64 `json:"accPp"` PassPp float64 `json:"passPp"` TechPp float64 `json:"techPp"` @@ -263,18 +263,18 @@ type PlayerData struct { Platform string `json:"platform"` Avatar string `json:"avatar"` Country string `json:"country"` - Alias *string `json:"alias"` - Bot bool `json:"bot"` - Pp float64 `json:"pp"` - Rank int `json:"rank"` - CountryRank int `json:"countryRank"` - Role string `json:"role"` + // Alias *string `json:"alias"` + Bot bool `json:"bot"` + Pp float64 `json:"pp"` + Rank int `json:"rank"` + CountryRank int `json:"countryRank"` + Role string `json:"role"` // Socials []string `json:"socials"` - ContextExtensions *string `json:"contextExtensions"` - PatreonFeatures *string `json:"patreonFeatures"` - ProfileSettings ProfileSettings `json:"profileSettings"` - ClanOrder string `json:"clanOrder"` - Clans []string `json:"clans"` + // ContextExtensions *string `json:"contextExtensions"` + // PatreonFeatures *string `json:"patreonFeatures"` + // ProfileSettings ProfileSettings `json:"profileSettings"` + // ClanOrder string `json:"clanOrder"` + // Clans []string `json:"clans"` } type LinkedIDs struct { @@ -398,8 +398,8 @@ func (p PlayerData) ToString() string { "全球排名 %d\n" + "区域排名 %d\n" + "Ranked谱面均准 %.2f%%\n" + - "总游玩次数 %d\n" + - "Ranked谱面游玩次数 %d\n" + + "总游玩记数 %d\n" + + "Ranked谱面游玩记数 %d\n" + "回放被观看次数 %d" return fmt.Sprintf(formatedStr, p.Name, @@ -420,8 +420,8 @@ func (p PlayerDataLite) ToString() string { "全球排名 %d\n" + "区域排名 %d\n" + "Ranked谱面均准 %.2f%%\n" + - "总游玩次数 %d\n" + - "Ranked谱面游玩次数 %d\n" + + "总游玩记数 %d\n" + + "Ranked谱面游玩记数 %d\n" + "回放被观看次数 %d" return fmt.Sprintf(formatedStr, p.Name, @@ -442,8 +442,8 @@ func (p PlayerData) LastDiffToString(lastDayQueryData PlayerDataLite) string { "全球排名 %d(%+d)\n" + "区域排名 %d(%+d)\n" + "Ranked谱面均准 %.2f%%(%+.2f%%)\n" + - "总游玩次数 %d(%+d)\n" + - "Ranked谱面游玩次数 %d(%+d)\n" + + "总游玩记数 %d(%+d)\n" + + "Ranked谱面游玩记数 %d(%+d)\n" + "回放被观看次数 %d" return fmt.Sprintf(formatedStr, p.Name,