mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-26 07:55:41 +00:00
37 lines
599 B
Python
37 lines
599 B
Python
from typing import List
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class AvatarName(BaseModel):
|
|
Hash: int
|
|
|
|
|
|
class AvatarConfig(BaseModel):
|
|
name: str = ""
|
|
AvatarID: int
|
|
AvatarName: AvatarName
|
|
AvatarVOTag: str
|
|
Release: bool
|
|
|
|
|
|
class AvatarIcon(BaseModel):
|
|
id: int
|
|
"""角色ID"""
|
|
name: str
|
|
"""名称"""
|
|
icon: List[str]
|
|
"""图标(从小到大)"""
|
|
|
|
@property
|
|
def gacha(self) -> str:
|
|
return self.icon[2]
|
|
|
|
@property
|
|
def icon_(self) -> str:
|
|
return self.icon[0]
|
|
|
|
@property
|
|
def normal(self) -> str:
|
|
return self.icon[1]
|