更新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
@@ -26,7 +26,7 @@ async def fastapi_get_pattern_schema(network: str = Query(..., description="管
async def fastapi_add_pattern(
network: str = Query(..., description="管网名称(或数据库名称)"),
pattern: str = Query(..., description="模式ID"),
req: Request = Body(...)
req: Request = None
) -> ChangeSet:
"""添加模式。
@@ -65,7 +65,7 @@ async def fastapi_get_pattern_properties(
async def fastapi_set_pattern_properties(
network: str = Query(..., description="管网名称(或数据库名称)"),
pattern: str = Query(..., description="模式ID"),
req: Request = Body(...)
req: Request = None
) -> ChangeSet:
"""设置模式属性。