init: 初始化 dpb 桃育种系统代码库
前后端 + 后端 FastAPI 全量源码、部署脚本与文档。
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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
|
||||
Reference in New Issue
Block a user