更新API请求体,移除不必要的请求参数
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user