Trim admin runtime imports

This commit is contained in:
2026-06-09 17:10:45 +08:00
parent c5aa7cd00e
commit 2fa2261949
10 changed files with 34 additions and 21 deletions
+1 -5
View File
@@ -17,7 +17,7 @@ from core.menu.schema import MenuCreate, MenuUpdate
menu_cache = CacheManager(prefix="menu:")
# 缓存key
AI_AGENT_ADMIN_MENU_CACHE_VERSION = "v3"
AI_AGENT_ADMIN_MENU_CACHE_VERSION = "v4"
MENU_TREE_CACHE_KEY = f"tree:ai_agent_admin:{AI_AGENT_ADMIN_MENU_CACHE_VERSION}"
USER_ROUTE_CACHE_PREFIX = f"user_route:ai_agent_admin:{AI_AGENT_ADMIN_MENU_CACHE_VERSION}:"
@@ -35,13 +35,9 @@ AI_AGENT_ADMIN_MENU_NAMES = {
"UserManagement",
"SystemMenu",
"SystemRole",
"SystemTools",
"系统工具",
"Message",
"AnnouncementList",
"AnnouncementManage",
"userCenter",
"userSettings",
}