equipment.py 468 B

12345678910111213141516171819202122232425
  1. # -*- coding: utf-8 -*-
  2. from pydantic import BaseModel
  3. from app.schemas.equipment import BaseEquipment
  4. class EquipmentControlResponse(BaseModel):
  5. result: str = "success"
  6. projectId: str
  7. equipId: str
  8. time: str
  9. output: dict
  10. class EquipmentControlRequest(BaseModel):
  11. equipId: str
  12. # method: str
  13. projectId: str
  14. equipType: str
  15. class EquipmentInstructionsResponse(BaseModel):
  16. project: str
  17. instructions: BaseEquipment | None