targets.py 792 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # -*- coding: utf-8 -*-
  2. from pydantic import BaseModel
  3. from app.schemas.feedback import Feedback
  4. from app.schemas.season import Season
  5. class TargetReadjustResponse(BaseModel):
  6. result: str = "success"
  7. projectId: str
  8. roomId: str
  9. flag: int
  10. time: str
  11. class RegulatedTargetResponse(BaseModel):
  12. projectId: str
  13. spaceId: str
  14. isTemporary: bool
  15. temperature: dict
  16. class TargetReadjustRequestBase(BaseModel):
  17. feedback: Feedback
  18. season: Season
  19. realtime_temperature: float
  20. targets: dict
  21. class TargetReadjustRequestV2(TargetReadjustRequestBase):
  22. pass
  23. class TargetReadjustResponseV2(BaseModel):
  24. pass
  25. class TargetReadjustRequestV3(TargetReadjustRequestBase):
  26. pre_changes: dict
  27. class TargetReadjustResponseV3(BaseModel):
  28. pass