diff --git a/python_core/cli/commands/auth.py b/python_core/cli/commands/auth.py index 3b9d6ea..093512f 100644 --- a/python_core/cli/commands/auth.py +++ b/python_core/cli/commands/auth.py @@ -11,7 +11,7 @@ import json import getpass from python_core.utils.jsonrpc_enhanced import create_response_handler from python_core.api.auth_api import auth_api -from python_core.services.user_storage import user_storage +from python_core.database.user import user_table from python_core.utils.jwt_auth import jwt_auth from uuid import uuid4 console = Console() @@ -95,7 +95,7 @@ def list_users( response = create_response_handler(str(uuid4())) try: # 获取用户列表 - users = user_storage.get_all_users(include_inactive) + users = user_table.get_all_users(include_inactive) response.success(users) except Exception as e: response.error(-32603, f"❌ 注册失败: {str(e)}") @@ -108,7 +108,7 @@ def show_stats(): response = create_response_handler(str(uuid4())) try: # 获取统计信息 - stats = user_storage.get_user_count() + stats = user_table.get_user_count() response.success(stats) except Exception as e: response.error(-32603, f"❌ 注册失败: {str(e)}")