You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
518 B
Python
14 lines
518 B
Python
from app.core.base_crud import CRUDBase
|
|
from app.core.base_schema import AuthSchema
|
|
|
|
from .model import EnergyReportTemplateModel
|
|
from .schema import EnergyReportTemplateCreateSchema, EnergyReportTemplateUpdateSchema
|
|
|
|
|
|
class EnergyReportTemplateCRUD(CRUDBase[EnergyReportTemplateModel, EnergyReportTemplateCreateSchema, EnergyReportTemplateUpdateSchema]):
|
|
"""能源报告模板数据层。"""
|
|
|
|
def __init__(self, auth: AuthSchema) -> None:
|
|
super().__init__(model=EnergyReportTemplateModel, auth=auth)
|
|
|