mirror of
https://github.com/baiqwerdvd/ArknightsUID.git
synced 2025-05-08 04:55:54 +08:00
25 lines
492 B
Python
25 lines
492 B
Python
from pydantic import BaseModel
|
|
|
|
|
|
class ChapterData(BaseModel):
|
|
chapterId: str
|
|
chapterName: str
|
|
chapterName2: str
|
|
chapterIndex: int
|
|
preposedChapterId: str | None
|
|
startZoneId: str
|
|
endZoneId: str
|
|
chapterEndStageId: str
|
|
|
|
|
|
class ChapterTable(BaseModel):
|
|
__version__ = '23-07-27-18-50-06-aeb568'
|
|
|
|
chapters: dict[str, ChapterData]
|
|
|
|
class Config:
|
|
extra = 'allow'
|
|
|
|
def __init__(self, data: dict) -> None:
|
|
super().__init__(chapters=data)
|