接口优化

This commit is contained in:
lhx
2025-09-26 16:56:49 +08:00
parent 2f8106ea62
commit 18478b148a
3 changed files with 25 additions and 12 deletions

View File

@@ -190,6 +190,7 @@ class DatabaseService:
"""获取所有表名"""
try:
inspector = inspect(engine)
return inspector.get_table_names()
# 排除mysql的系统表和accounts表
return [table for table in inspector.get_table_names() if not table.startswith('mysql') and table != 'accounts']
except Exception as e:
return []