mirror of
https://github.com/PaiGramTeam/EnkaNetwork.py.git
synced 2024-11-16 03:45:28 +00:00
parent
92b9e7d172
commit
9c82f65545
@ -32,7 +32,7 @@ class NamecardAsset(BaseModel):
|
||||
"""
|
||||
|
||||
id: int = 0
|
||||
hash_id: str | int = Field("", alias="nameTextMapHash")
|
||||
hash_id: str = Field("", alias="nameTextMapHash")
|
||||
icon: IconAsset
|
||||
banner: IconAsset
|
||||
navbar: IconAsset
|
||||
@ -74,7 +74,7 @@ class CharacterSkillAsset(BaseModel):
|
||||
"""
|
||||
id: int = 0,
|
||||
pround_map: int = 0,
|
||||
hash_id: str | int = Field("", alias="nameTextMapHash")
|
||||
hash_id: str = Field("", alias="nameTextMapHash")
|
||||
icon: IconAsset = None
|
||||
|
||||
|
||||
@ -91,7 +91,7 @@ class CharacterConstellationsAsset(BaseModel):
|
||||
A icon assets. Please refers in `IconAsset` class
|
||||
"""
|
||||
id: int = 0
|
||||
hash_id: str | int = Field("", alias="nameTextMapHash")
|
||||
hash_id: str = Field("", alias="nameTextMapHash")
|
||||
icon: IconAsset = None
|
||||
|
||||
|
||||
@ -114,7 +114,7 @@ class AritfactProps(BaseModel):
|
||||
id: int = 0
|
||||
type: str = Field('', alias='propType')
|
||||
digit: str = Field('DIGIT', alias='propDigit')
|
||||
value: int | float = Field(0, alias='propValue')
|
||||
value: int = Field(0, alias='propValue')
|
||||
|
||||
|
||||
class CharacterAsset(BaseModel):
|
||||
@ -141,7 +141,7 @@ class CharacterAsset(BaseModel):
|
||||
"""
|
||||
id: int = 0
|
||||
rarity: int = 0
|
||||
hash_id: str | int = Field("", alias="nameTextMapHash")
|
||||
hash_id: str = Field("", alias="nameTextMapHash")
|
||||
element: ElementType = ElementType.Unknown
|
||||
images: CharacterIconAsset = None
|
||||
skill_id: int = 0
|
||||
|
@ -93,7 +93,7 @@ class EquipmentsProps(BaseModel):
|
||||
prop_id: str = ''
|
||||
name: str = ''
|
||||
digit: DigitType = DigitType.NUMBER
|
||||
value: int | float = 0
|
||||
value: int = 0
|
||||
|
||||
def __init__(self, **data: Any) -> None:
|
||||
super().__init__(**data)
|
||||
|
@ -50,7 +50,7 @@ class showAvatar(BaseModel):
|
||||
"""
|
||||
API Response data
|
||||
"""
|
||||
id: int = Field(0, alias="avatarId")
|
||||
id: str = Field(0, alias="avatarId")
|
||||
level: int = 1
|
||||
|
||||
"""
|
||||
|
@ -1,3 +1,3 @@
|
||||
pydantic >= 2.0.0
|
||||
pydantic
|
||||
aiohttp
|
||||
cachetools
|
Loading…
Reference in New Issue
Block a user