outbound_handover.py 784 B

12345678910111213141516171819202122232425
  1. from datetime import datetime
  2. from typing import List, Optional
  3. from pydantic import BaseModel, ConfigDict, Field
  4. from app.schemas.outbound_release_material import OutboundReleaseMaterialSaveBody
  5. class OutboundHandoverItem(BaseModel):
  6. model_config = ConfigDict(populate_by_name=True)
  7. handoverUserId: str = Field(..., min_length=1)
  8. handoverTime: str = Field(..., min_length=1)
  9. handoverLocation: Optional[str] = None
  10. receiverPerson: str = Field(..., min_length=1)
  11. cellPurpose: Optional[str] = None
  12. attachments: Optional[str] = None
  13. remark: Optional[str] = None
  14. class OutboundHandoverSaveBody(BaseModel):
  15. model_config = ConfigDict(populate_by_name=True)
  16. outboundMaterial: OutboundReleaseMaterialSaveBody
  17. handover: OutboundHandoverItem