zhizhi-aiservice / models.py
hujameson's picture
zhizhi-aiservice:0.1.2
e6b354c verified
# from typing import Optional
from pydantic import BaseModel, Field
class Item2AI(BaseModel):
upload_id: str = Field(title="the unique id of the item in uploaded",examples=["202402022042282841"])
union_id: str = Field(title="the user unionid of the item uploaded",examples=["oR_-n69II04mrTuFOFyqiAt_Wgbk"])
item_fileurl: str = Field(title="the file url of the item uploaded",examples=["cloud://prod-3g52ms9o7a81f23c.7072-prod-3g52ms9o7a81f23c-1324125412/oR_-n69II04mrTuFOFyqiAt_Wgbk/202402022042282841.jpg"])
item_mediatype: str = Field(title="the media type of the item uploaded",examples=["image"])
upload_datetime: str = Field(title="the upload datetime of the item uploaded",examples=["2024-2-2 20:42:28"])
class AI2Item(BaseModel):
upload_id: str = Field(title="the unique id of the item in uploaded",examples=["202402022042282841"])
union_id: str = Field(title="the user unionid of the item uploaded",examples=["oR_-n69II04mrTuFOFyqiAt_Wgbk"])
item_fileurl: str = Field(title="the file url of the item uploaded",examples=["cloud://prod-3g52ms9o7a81f23c.7072-prod-3g52ms9o7a81f23c-1324125412/oR_-n69II04mrTuFOFyqiAt_Wgbk/202402022042282841.jpg"])
item_mediatype: str = Field(title="the media type of the item uploaded",examples=["image"])
upload_datetime: str = Field(title="the upload datetime of the item uploaded",examples=["2024-2-2 20:42:28"])
ai_feedback: str = Field(title="the ai feedback to the item in history",examples=["AZARAS SPINETAIL"])