1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- # -*- coding: utf-8 -*-
- from pydantic import BaseModel
- from app.schemas.feedback import Feedback
- from app.schemas.season import Season
- class TargetReadjustResponse(BaseModel):
- result: str = "success"
- projectId: str
- roomId: str
- flag: int
- time: str
- class RegulatedTargetResponse(BaseModel):
- projectId: str
- spaceId: str
- isTemporary: bool
- temperature: dict
- class TargetReadjustRequestBase(BaseModel):
- feedback: Feedback
- season: Season
- realtime_temperature: float
- targets: dict
- class TargetReadjustRequestV2(TargetReadjustRequestBase):
- pass
- class TargetReadjustResponseV2(BaseModel):
- pass
- class TargetReadjustRequestV3(TargetReadjustRequestBase):
- pre_changes: dict
- class TargetReadjustResponseV3(BaseModel):
- pass
|