refactoring

This commit is contained in:
2025-12-21 17:51:41 +03:00
parent d9bf44e669
commit 46b4e95d45
16 changed files with 42 additions and 10 deletions

View File

@@ -0,0 +1,11 @@
from pydantic import BaseModel, Field, field_validator
class ExcelInfo(BaseModel):
arti:str = Field(..., min_length=5, max_length=12, description="arti of the clothes")
counts:int = Field(..., gt=0, description="the quantity of the clothes")
price:float = Field(..., gt=0, description="the price of the clothes")
class ExcelRealization(BaseModel):
pass
class ExcelReturning(BaseModel):
pass
class ExcelOut(BaseModel):
pass