Files
dpb/backend/app/api/v1/module_bre/selection_result/crud.py
T

19 lines
556 B
Python
Raw Normal View History

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 SelectionResultModel
class BreedingSelectionResultCRUD(CRUDBase[SelectionResultModel, Any, Any]):
"""选育结果 CRUD —— 直接复用 CRUDBase(已自动注入数据权限过滤)。"""
def __init__(self, auth: AuthSchema, db: AsyncSession) -> None:
super().__init__(SelectionResultModel, auth, db)
selection_result_crud = BreedingSelectionResultCRUD