This commit is contained in:
root 2025-07-12 20:53:29 +08:00
parent fb63e5b0a8
commit cda87edd6a
1 changed files with 3 additions and 3 deletions

View File

@ -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)}")