26 lines
784 B
Python
26 lines
784 B
Python
from datetime import datetime
|
|
from typing import List, Optional
|
|
|
|
from pydantic import BaseModel, ConfigDict, Field
|
|
|
|
from app.schemas.outbound_release_material import OutboundReleaseMaterialSaveBody
|
|
|
|
|
|
class OutboundHandoverItem(BaseModel):
|
|
model_config = ConfigDict(populate_by_name=True)
|
|
|
|
handoverUserId: str = Field(..., min_length=1)
|
|
handoverTime: str = Field(..., min_length=1)
|
|
handoverLocation: Optional[str] = None
|
|
receiverPerson: str = Field(..., min_length=1)
|
|
cellPurpose: Optional[str] = None
|
|
attachments: Optional[str] = None
|
|
remark: Optional[str] = None
|
|
|
|
|
|
class OutboundHandoverSaveBody(BaseModel):
|
|
model_config = ConfigDict(populate_by_name=True)
|
|
|
|
outboundMaterial: OutboundReleaseMaterialSaveBody
|
|
handover: OutboundHandoverItem
|