customer_stop_pref.py 518 B

1234567891011121314151617
  1. """客户装/送货物流默认记忆 Schema"""
  2. from decimal import Decimal
  3. from typing import Optional
  4. from pydantic import BaseModel, Field
  5. class CustomerStopPrefRead(BaseModel):
  6. customer_id: str = Field(alias="customerId")
  7. stop_type: str = Field(alias="stopType")
  8. address: Optional[str] = None
  9. lng: Optional[Decimal] = None
  10. lat: Optional[Decimal] = None
  11. contact: Optional[str] = None
  12. notes: Optional[str] = None
  13. model_config = {"from_attributes": True, "populate_by_name": True}