EnkaNetwork.py/enkanetwork/model/artifact.py

11 lines
282 B
Python
Raw Normal View History

2022-06-22 06:14:31 +00:00
from pydantic import BaseModel, Field
from typing import List
class ArtifactInfo(BaseModel):
level: int
mainPropId: int
appendPropIdList: List[int]
class Artifacts(BaseModel):
id: int = Field(0, alias="itemId")
data: ArtifactInfo = Field({}, alias="reliquary")