17 lines
271 B
Python
17 lines
271 B
Python
|
from typing import List, Optional
|
||
|
|
||
|
from pydantic import BaseModel
|
||
|
|
||
|
|
||
|
class RewardItem(BaseModel):
|
||
|
name: str
|
||
|
count: int
|
||
|
type: str
|
||
|
|
||
|
|
||
|
class AdventureRank(BaseModel):
|
||
|
name: str
|
||
|
exp: Optional[int] = 0
|
||
|
unlockdescription: str
|
||
|
reward: List[RewardItem]
|