更新爆管分析接受参数格式

This commit is contained in:
2026-02-06 16:59:46 +08:00
parent dc38313cdc
commit e4f864a28c
2 changed files with 3 additions and 4 deletions

View File

@@ -196,10 +196,8 @@ async def burst_analysis_endpoint(
async def fastapi_burst_analysis(
network: str = Query(...),
modify_pattern_start_time: str = Query(...),
burst_ID: list | str = Query(..., alias="burst_ID[]"), # 添加别名以匹配 URL
burst_size: list | float | int = Query(
..., alias="burst_size[]"
), # 添加别名以匹配 URL
burst_ID: list[str] = Query(...),
burst_size: list[float] = Query(...),
modify_total_duration: int = Query(...),
scheme_name: str = Query(...),
) -> str: