mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-14 13:42:56 +08:00
* ♻️ 使用Uninfo重构PlatformUtils基础方法 * 🩹 优化插件加载与模块格式转换逻辑 * 🚑 修复商店道具无法使用 * 🚑 修复道具无法正常使用 * 🔧 增加Bot状态管理及模块禁用功能 * 🎨 优化Web UI代码结构,修改target方法 * 🚨 auto fix by pre-commit hooks * 🎨 添加菜单API及优化异常处理 * 🐛 优化菜单API及模型结构,修复WebUi插件列表Api * 📝 更新仓库readme * 🚨 add mdlint file * 📝 Add help chapter. * 🐛 修复优化AuthChecker逻辑 * 🐛 优化数据库API,移除冗余导入及修正SQL_DICT引用 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: BalconyJH <balconyjh@gmail.com>
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]
|
|
"""菜单列表"""
|