新赛季排行榜 API 模型

This commit is contained in:
2024-08-02 22:02:21 +08:00
parent 71ad53a1f9
commit 50431fe7cb
6 changed files with 68 additions and 5 deletions

View File

@@ -4,9 +4,9 @@ from pydantic import BaseModel
class User(BaseModel):
id: str
username: str
avatar_revision: int
banner_revision: int
country: str
avatar_revision: int | None
banner_revision: int | None
country: str | None
verified: int
supporter: int

View File

@@ -34,7 +34,7 @@ class Clears(BaseModel):
class Garbage(BaseModel):
sent: int
received: int
attack: int
attack: int | None
cleared: int

View File

@@ -76,7 +76,7 @@ class Stats(BaseModel):
kills: int
finesse: Finesse
zenith: _Zenith
finaltime: int
finaltime: float
class Results(BaseModel):