"""Legacy evaluation point API. The current rule configuration flow is backed by leaudit_evaluation_point_groups and rule version tables. The old evaluation_points table is no longer present in the active schema, so keep this route explicit and non-destructive. """ from fastapi.responses import JSONResponse from fastapi_common.fastapi_common_web.controller import BaseController class EvaluationPointController(BaseController): """Deprecated legacy evaluation point controller.""" def __init__(self): super().__init__(prefix="/v3/evaluation-points", tags=["旧评查点接口"]) @self.router.api_route("", methods=["GET", "POST"]) async def LegacyEvaluationPointsRoot(): return self._gone() @self.router.api_route("/attribute-types", methods=["GET"]) async def LegacyEvaluationPointAttributeTypes(): return self._gone() @self.router.api_route("/{PointId}", methods=["GET", "PUT", "DELETE"]) async def LegacyEvaluationPointDetail(PointId: int): return self._gone() @staticmethod def _gone() -> JSONResponse: return JSONResponse( status_code=410, content={ "code": 410, "msg": "旧评查点接口已下线,请使用规则组/规则配置接口", "data": None, }, )