19 lines
505 B
Python
19 lines
505 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 SeedLotModel
|
|
|
|
|
|
class BreedingSeedLotCRUD(CRUDBase[SeedLotModel, Any, Any]):
|
|
"""种子批 CRUD —— 直接复用 CRUDBase(已自动注入数据权限过滤)。"""
|
|
|
|
def __init__(self, auth: AuthSchema, db: AsyncSession) -> None:
|
|
super().__init__(SeedLotModel, auth, db)
|
|
|
|
|
|
seed_lot_crud = BreedingSeedLotCRUD
|