app.post('/background_task')async def background_task(background_tasks: BackgroundTasks): """ 测试接口 background-task - begin_time}s')def get_q(background_tasks: BackgroundTasks, q: str | None = None): """ 测试接口 background-task '/background_task_2')async def background_task_2(q: Annotated[str, Depends(get_q)]): """ 测试接口 background-task