63 lines
2.1 KiB
Python
63 lines
2.1 KiB
Python
"""育种统计 CRUD"""
|
|
from sqlalchemy.ext.asyncio import AsyncSession
|
|
|
|
from app.core.base_crud import CRUDBase
|
|
from app.core.base_schema import AuthSchema
|
|
|
|
from .model import (
|
|
AnovaResultModel,
|
|
CombiningAbilityModel,
|
|
GeneticCorrResultModel,
|
|
PredictionModel,
|
|
PredictionValueModel,
|
|
SelectionIndexModel,
|
|
StabilityResultModel,
|
|
StatisticsJobModel,
|
|
TypeBResultModel,
|
|
)
|
|
|
|
|
|
class PredictionCRUD(CRUDBase[PredictionModel, dict, dict]):
|
|
def __init__(self, auth: AuthSchema, db: AsyncSession) -> None:
|
|
super().__init__(PredictionModel, auth, db)
|
|
|
|
|
|
class PredictionValueCRUD(CRUDBase[PredictionValueModel, dict, dict]):
|
|
def __init__(self, auth: AuthSchema, db: AsyncSession) -> None:
|
|
super().__init__(PredictionValueModel, auth, db)
|
|
|
|
|
|
class CombiningAbilityCRUD(CRUDBase[CombiningAbilityModel, dict, dict]):
|
|
def __init__(self, auth: AuthSchema, db: AsyncSession) -> None:
|
|
super().__init__(CombiningAbilityModel, auth, db)
|
|
|
|
|
|
class StatisticsJobCRUD(CRUDBase[StatisticsJobModel, dict, dict]):
|
|
def __init__(self, auth: AuthSchema, db: AsyncSession) -> None:
|
|
super().__init__(StatisticsJobModel, auth, db)
|
|
|
|
|
|
class SelectionIndexCRUD(CRUDBase[SelectionIndexModel, dict, dict]):
|
|
def __init__(self, auth: AuthSchema, db: AsyncSession) -> None:
|
|
super().__init__(SelectionIndexModel, auth, db)
|
|
|
|
|
|
class AnovaResultCRUD(CRUDBase[AnovaResultModel, dict, dict]):
|
|
def __init__(self, auth: AuthSchema, db: AsyncSession) -> None:
|
|
super().__init__(AnovaResultModel, auth, db)
|
|
|
|
|
|
class GeneticCorrResultCRUD(CRUDBase[GeneticCorrResultModel, dict, dict]):
|
|
def __init__(self, auth: AuthSchema, db: AsyncSession) -> None:
|
|
super().__init__(GeneticCorrResultModel, auth, db)
|
|
|
|
|
|
class StabilityResultCRUD(CRUDBase[StabilityResultModel, dict, dict]):
|
|
def __init__(self, auth: AuthSchema, db: AsyncSession) -> None:
|
|
super().__init__(StabilityResultModel, auth, db)
|
|
|
|
|
|
class TypeBResultCRUD(CRUDBase[TypeBResultModel, dict, dict]):
|
|
def __init__(self, auth: AuthSchema, db: AsyncSession) -> None:
|
|
super().__init__(TypeBResultModel, auth, db)
|