diff --git a/apps/api/app/api/routes/edit_plans.py b/apps/api/app/api/routes/edit_plans.py index 5b074fce4..3b0f3680a 100644 --- a/apps/api/app/api/routes/edit_plans.py +++ b/apps/api/app/api/routes/edit_plans.py @@ -1,3 +1,4 @@ +from fastapi.responses import Response """剪辑计划管理 API — Phase 8 模板编排引擎. RESTful CRUD for EditPlan: @@ -279,7 +280,7 @@ def update_plan( return _to_response(result) -@router.delete("/{plan_id}", status_code=status.HTTP_204_NO_CONTENT) +@router.delete("/{plan_id}", status_code=status.HTTP_204_NO_CONTENT, response_class=Response) def delete_plan( plan_id: str, db: Session = Depends(get_db_session),