mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-24 15:19:20 +00:00
21 lines
349 B
Python
21 lines
349 B
Python
|
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]
|