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 # user 39
########################################################### ###########################################################
@app.get('/getuserschema/') @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) return get_user_schema(network)
@app.get('/getuser/') @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) return get_user(network, user_name)
@app.get('/getallusers/') @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) return get_all_users(network)