PamGram/modules/wiki/models/light_cone_config.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
349 B
Python
Raw Normal View History

2023-04-27 12:25:06 +00:00
from typing import List
from pydantic import BaseModel
class LightConeIcon(BaseModel):
id: int
"""光锥ID"""
name: str
"""名称"""
icon: List[str]
"""图标(从小到大)"""
@property
def gacha(self) -> str:
return self.icon[1]
@property
def icon_(self) -> str:
return self.icon[0]