from typing import Any from sqlalchemy.ext.asyncio import AsyncSession from app.core.base_crud import CRUDBase from app.core.base_schema import AuthSchema from .model import AlertModel class BreedingAlertCRUD(CRUDBase[AlertModel, Any, Any]): """超期预警 CRUD —— 仅复用查询/分页(生成侧不走 CRUDBase,防自审计噪声)。""" def __init__(self, auth: AuthSchema, db: AsyncSession) -> None: super().__init__(AlertModel, auth, db) alert_crud = BreedingAlertCRUD