拆分main.py

This commit is contained in:
2026-01-21 18:19:48 +08:00
parent fd3a9f92c0
commit 2668faf8ad
28 changed files with 2459 additions and 4205 deletions

View File

@@ -0,0 +1,17 @@
from typing import Any
from fastapi import APIRouter
from app.native.api import ChangeSet
from app.services.tjnetwork import (
get_scada_info,
get_all_scada_info,
)
router = APIRouter()
@router.get("/getscadaproperties/")
async def fast_get_scada_properties(network: str, scada: str) -> dict[str, Any]:
return get_scada_info(network, scada)
@router.get("/getallscadaproperties/")
async def fast_get_all_scada_properties(network: str) -> list[dict[str, Any]]:
return get_all_scada_info(network)