mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
🚨 auto fix by pre-commit hooks
This commit is contained in:
parent
9029f15512
commit
e9d0053989
@ -7,12 +7,14 @@ from .base import RenderableComponent
|
||||
|
||||
class DetailsItem(BaseModel):
|
||||
"""描述列表中的单个项目"""
|
||||
|
||||
label: str = Field(..., description="项目的标签/键")
|
||||
value: Any = Field(..., description="项目的值")
|
||||
|
||||
|
||||
class DetailsData(RenderableComponent):
|
||||
"""描述列表(键值对)的数据模型"""
|
||||
|
||||
title: str | None = Field(None, description="列表的可选标题")
|
||||
items: list[DetailsItem] = Field(default_factory=list, description="键值对项目列表")
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user