mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-14 21:52:56 +08:00
22 lines
377 B
Python
22 lines
377 B
Python
|
|
from pydantic import BaseModel
|
||
|
|
|
||
|
|
|
||
|
|
class MenuItem(BaseModel):
|
||
|
|
module: str
|
||
|
|
"""模块名称"""
|
||
|
|
name: str
|
||
|
|
"""菜单名称"""
|
||
|
|
router: str
|
||
|
|
"""路由"""
|
||
|
|
icon: str
|
||
|
|
"""图标"""
|
||
|
|
default: bool = False
|
||
|
|
"""默认选中"""
|
||
|
|
|
||
|
|
|
||
|
|
class MenuData(BaseModel):
|
||
|
|
bot_type: str = "zhenxun"
|
||
|
|
"""bot类型"""
|
||
|
|
menus: list[MenuItem]
|
||
|
|
"""菜单列表"""
|