Files
shanxia2.0/backend/app/schemas/outbound_handover.py
T
2026-05-27 05:23:28 +08:00

24 lines
708 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)
remark: Optional[str] = None
class OutboundHandoverSaveBody(BaseModel):
model_config = ConfigDict(populate_by_name=True)
outboundMaterial: OutboundReleaseMaterialSaveBody
handover: OutboundHandoverItem