后端模块拆分

This commit is contained in:
2026-05-29 18:10:08 +08:00
parent 5bb9bc84ea
commit 823a387118
93 changed files with 198 additions and 833 deletions
@@ -0,0 +1,23 @@
from pydantic import BaseModel
from typing import Optional
class WarehouseCreate(BaseModel):
code: Optional[str] = None
name: str
address: Optional[str] = None
manager: Optional[str] = None
phone: Optional[str] = None
class WarehouseResponse(BaseModel):
id: int
code: Optional[str]
name: str
address: Optional[str]
manager: Optional[str]
is_active: bool
is_default: bool
class Config:
from_attributes = True