mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-23 23:04:29 +00:00
24 lines
350 B
Python
24 lines
350 B
Python
from typing import Optional, List
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class PhoneTheme(BaseModel):
|
|
id: int
|
|
"""ID"""
|
|
name: str
|
|
"""名称"""
|
|
description: str
|
|
"""描述"""
|
|
story: Optional[str] = None
|
|
"""故事"""
|
|
urls: List[str]
|
|
|
|
|
|
# 原始数据
|
|
|
|
|
|
class PhoneThemeConfig(BaseModel):
|
|
ID: int
|
|
PhoneThemeMain: str
|