This commit is contained in:
薇薇安 2026-02-03 11:41:51 +08:00
parent 97ecf8e605
commit 0962df4112
2 changed files with 4 additions and 3 deletions

View File

@ -153,7 +153,8 @@ async def update_credentials(
# --- Service Management --- # --- Service Management ---
@router.get("/{account_id}/service/status") @router.get("/{account_id}/trading/status")
@router.get("/{account_id}/service/status", include_in_schema=False) # 兼容旧路由
async def get_service_status(account_id: int, user: Dict[str, Any] = Depends(require_account_access)): async def get_service_status(account_id: int, user: Dict[str, Any] = Depends(require_account_access)):
"""获取该账号关联的交易服务状态""" """获取该账号关联的交易服务状态"""
try: try:

View File

@ -1,12 +1,12 @@
""" """
配置管理API 配置管理API
""" """
from fastapi import APIRouter, HTTPException, Header, Depends from fastapi import APIRouter, HTTPException, Header, Depends, Query
from api.models.config import ConfigItem, ConfigUpdate from api.models.config import ConfigItem, ConfigUpdate
import sys import sys
from pathlib import Path from pathlib import Path
import logging import logging
from typing import Dict, Any from typing import Dict, Any, Optional
# 添加项目根目录到路径 # 添加项目根目录到路径
project_root = Path(__file__).parent.parent.parent.parent project_root = Path(__file__).parent.parent.parent.parent