撤销上一个提交

This commit is contained in:
2026-01-22 18:20:18 +08:00
parent 7640d96f86
commit f3665798b7
22 changed files with 221 additions and 221 deletions

View File

@@ -9,7 +9,7 @@ async def fastapi_get_curve_schema(network: str) -> dict[str, dict[str, Any]]:
return get_curve_schema(network)
@router.post("/addcurve/", response_model=None)
async def fastapi_add_curve(network: str, curve: str, req: Request) -> "ChangeSet":
async def fastapi_add_curve(network: str, curve: str, req: Request) -> ChangeSet:
props = await req.json()
ps = {
"id": curve,
@@ -17,7 +17,7 @@ async def fastapi_add_curve(network: str, curve: str, req: Request) -> "ChangeSe
return add_curve(network, ChangeSet(ps))
@router.post("/deletecurve/", response_model=None)
async def fastapi_delete_curve(network: str, curve: str) -> "ChangeSet":
async def fastapi_delete_curve(network: str, curve: str) -> ChangeSet:
ps = {"id": curve}
return delete_curve(network, ChangeSet(ps))
@@ -28,7 +28,7 @@ async def fastapi_get_curve_properties(network: str, curve: str) -> dict[str, An
@router.post("/setcurveproperties/", response_model=None)
async def fastapi_set_curve_properties(
network: str, curve: str, req: Request
) -> "ChangeSet":
) -> ChangeSet:
props = await req.json()
ps = {"id": curve} | props
return set_curve(network, ChangeSet(ps))