zhenxun_bot/zhenxun/builtin_plugins/superuser
webjoin111 b29c8b0695 feat(group-settings): 实现群插件配置管理系统
- 引入 GroupSettingsService 服务,提供统一的群插件配置管理接口
- 新增 GroupPluginSetting 模型,用于持久化存储插件在不同群组的配置
- 插件扩展数据 PluginExtraData 增加 group_config_model 字段,用于注册分群配置模型
- 新增 GetGroupConfig 依赖注入,允许插件轻松获取和解析当前群组的配置

【核心服务 GroupSettingsService】
- 支持按群组、插件名和键设置、获取和删除配置项
- 实现配置聚合缓存机制,提升配置读取效率,减少数据库查询
- 支持配置继承与覆盖逻辑(群配置覆盖全局默认值)
- 提供批量设置功能 set_bulk,方便为多个群组同时更新配置

【管理与缓存】
- 新增超级用户命令 pconf (plugin_config_manager),用于命令行管理插件的分群和全局配置
- 新增 CacheType.GROUP_PLUGIN_SETTINGS 缓存类型并注册
- 增加 Pydantic model_construct 兼容函数
2025-11-15 21:13:14 +08:00
..
bot_manage 🐛 修复踢出群组回复内容错误 (#1911) 2025-05-25 11:47:38 +08:00
broadcast 🐛 修复被动的默认开关指令 (#1948) 2025-07-11 10:07:09 +08:00
__init__.py init🎉: 首次提交 2024-02-04 04:18:54 +08:00
clear_data.py Compatible with pydantic 2.0 using the pydantic compatibility layer provided by nonebot 2025-01-10 12:19:11 +08:00
exec_sql.py Compatible with pydantic 2.0 using the pydantic compatibility layer provided by nonebot 2025-01-10 12:19:11 +08:00
fg_manage.py Compatible with pydantic 2.0 using the pydantic compatibility layer provided by nonebot 2025-01-10 12:19:11 +08:00
group_manage.py 引入缓存机制 (#1889) 2025-07-14 22:35:29 +08:00
plugin_config_manager.py feat(group-settings): 实现群插件配置管理系统 2025-11-15 21:13:14 +08:00
reload_setting.py ♻️ refactor(UI): 重构UI渲染服务为组件化分层架构 (#2025) 2025-08-18 23:08:22 +08:00
request_manage.py 增强权限检查,更新请求管理命令和数据库配置逻辑 (#2011) 2025-08-06 09:02:07 +08:00
set_admin.py Compatible with pydantic 2.0 using the pydantic compatibility layer provided by nonebot 2025-01-10 12:19:11 +08:00
super_help.py ♻️ refactor: 统一图片渲染架构并引入通用UI组件系统 (#2019) 2025-08-15 16:34:37 +08:00
super_power.py 新增好感度/金币设置和详细帮助 (#1831) 2025-01-10 18:39:23 +08:00
tag_manage.py feat(core): 增强定时任务与群组标签管理,重构调度核心 (#2068) 2025-11-03 10:53:40 +08:00
ui_manager.py feat!(ui): 重构图表组件架构,实现数据与样式分离 (#2035) 2025-08-28 09:20:15 +08:00
update_fg_info.py Compatible with pydantic 2.0 using the pydantic compatibility layer provided by nonebot 2025-01-10 12:19:11 +08:00