This commit is contained in:
DingZQ
2025-03-28 20:25:52 +08:00
parent a6a0496a86
commit 54b4880977

View File

@@ -2045,15 +2045,15 @@ async def fastapi_get_all_scada_info(network: str) -> list[dict[str, float]]:
# user 39
###########################################################
@app.get('/getuserschema/')
async def fastapi_get_user_schema(network: str) -> dict[str, dict[str, Any]]:
async def fastapi_get_user_schema(network: str) -> dict[str, dict[Any, Any]]:
return get_user_schema(network)
@app.get('/getuser/')
async def fastapi_get_user(network: str, user_name: str) -> dict[str, float]:
async def fastapi_get_user(network: str, user_name: str) -> dict[Any, Any]:
return get_user(network, user_name)
@app.get('/getallusers/')
async def fastapi_get_all_users(network: str) -> list[dict[str, float]]:
async def fastapi_get_all_users(network: str) -> list[dict[Any, Any]]:
return get_all_users(network)