mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-28 08:30:27 +00:00
20 lines
316 B
Python
20 lines
316 B
Python
# 材料
|
|
from pydantic import BaseModel
|
|
|
|
from .enums import Quality, MaterialType
|
|
|
|
|
|
class Material(BaseModel):
|
|
id: int
|
|
"""材料ID"""
|
|
name: str
|
|
"""名称"""
|
|
desc: str
|
|
"""介绍"""
|
|
icon: str
|
|
"""图标"""
|
|
quality: Quality
|
|
"""稀有度"""
|
|
type: MaterialType
|
|
"""类型"""
|