Files
shanxia2.0/backend/app/schemas/pl/customer_stop_pref.py
T
2026-08-27 14:23:18 +08:00

18 lines
518 B
Python

"""客户装/送货物流默认记忆 Schema"""
from decimal import Decimal
from typing import Optional
from pydantic import BaseModel, Field
class CustomerStopPrefRead(BaseModel):
customer_id: str = Field(alias="customerId")
stop_type: str = Field(alias="stopType")
address: Optional[str] = None
lng: Optional[Decimal] = None
lat: Optional[Decimal] = None
contact: Optional[str] = None
notes: Optional[str] = None
model_config = {"from_attributes": True, "populate_by_name": True}