更新API请求体,移除不必要的请求参数

This commit is contained in:
2026-03-13 15:23:02 +08:00
parent b513d05611
commit cfe69e581b
18 changed files with 61 additions and 61 deletions
+2 -2
View File
@@ -326,7 +326,7 @@ async def fast_get_title(network: str = Query(..., description="管网名称(
)
async def fastapi_set_title(
network: str = Query(..., description="管网名称(或数据库名称)"),
req: Request = Body(...)
req: Request = None
) -> ChangeSet:
"""设置水网的标题属性。"""
props = await req.json()
@@ -368,7 +368,7 @@ async def fastapi_get_status(
async def fastapi_set_status_properties(
network: str = Query(..., description="管网名称(或数据库名称)"),
link: str = Query(..., description="管线ID"),
req: Request = Body(...)
req: Request = None
) -> ChangeSet:
"""设置管线的状态属性。"""
props = await req.json()