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 AuditLogModel
|
||||
|
||||
|
||||
class BreedingAuditCRUD(CRUDBase[AuditLogModel, Any, Any]):
|
||||
"""审计日志 CRUD —— 复用 CRUDBase 的查询/分页(自动带数据权限过滤)。"""
|
||||
|
||||
def __init__(self, auth: AuthSchema, db: AsyncSession) -> None:
|
||||
super().__init__(AuditLogModel, auth, db)
|
||||
|
||||
|
||||
audit_crud = BreedingAuditCRUD
|
||||
Reference in New Issue
Block a user