Files
dpb/backend/app/api/v1/module_bre/alert/crud.py
T
34047007@qq.com b95053c52c init: 初始化 dpb 桃育种系统代码库
前后端 + 后端 FastAPI 全量源码、部署脚本与文档。
2026-08-06 00:17:49 +08:00

19 lines
508 B
Python

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