attribute 字段名规范

This commit is contained in:
zhouchengrong
2024-03-28 10:30:18 +08:00
parent 2931dc2a41
commit ddcc8b4300
297 changed files with 5098 additions and 0 deletions

6
app/schemas/attribute.py Normal file
View File

@@ -0,0 +1,6 @@
from pydantic import BaseModel
class AttributeModel(BaseModel):
upload_img_path: list
upload_img_id: list

View File

@@ -0,0 +1,15 @@
from pydantic import BaseModel
class OMDataItem(BaseModel):
item_name: str
semantic_category: str
image_path: str
class OutfitMatcher(BaseModel):
topk: int
max_outfits: int
is_best: bool
query: list[OMDataItem]
database: list[OMDataItem]

View File

@@ -0,0 +1,6 @@
from pydantic import BaseModel
class SimilarMatchMItem(BaseModel):
image_path: str
result_number: int