24 lines
514 B
Python
24 lines
514 B
Python
from __future__ import annotations
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
class DashboardStats(BaseModel):
|
|
today_inbound: float = Field(alias="todayInbound")
|
|
today_outbound: float = Field(alias="todayOutbound")
|
|
abnormal_orders: int = Field(alias="abnormalOrders")
|
|
|
|
model_config = {"populate_by_name": True}
|
|
|
|
|
|
class DashboardCargoStat(BaseModel):
|
|
label: str
|
|
planned: float
|
|
actual: float
|
|
|
|
|
|
class DashboardPartnerCargoStat(BaseModel):
|
|
label: str
|
|
planned: float
|
|
actual: float
|