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