PIbd-42_SSPR/network/bodies.py

12 lines
327 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from pydantic import BaseModel
class LoadParametersBody(BaseModel):
id:int
load:int
primary_air_consumption: float
secondary_air_consumption:float
gas_inlet_consumption:float
class Config:
from_attributes = True # Позволяет Pydantic работать с объектами SQLAlchemy