Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions apps/pre-processing-service/app/model/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,13 @@ class S3ImageInfo(BaseModel):
..., title="원본 URL", description="크롤링된 원본 이미지 URL"
)
s3_url: str = Field(..., title="S3 URL", description="S3에서 접근 가능한 URL")
# 새로 추가: 파일 크기 정보 (이미지 선별용)
file_size_kb: Optional[float] = Field(
None, title="파일 크기(KB)", description="이미지 파일 크기"
)
file_name: Optional[str] = Field(
None, title="파일명", description="S3에 저장된 파일명"
)


# 상품별 S3 업로드 결과
Expand Down Expand Up @@ -274,14 +281,18 @@ class RequestBlogCreate(RequestBase):
keyword: Optional[str] = Field(
None, title="키워드", description="콘텐츠 생성용 키워드"
)
translation_language: Optional[str] = Field(
None,
title="번역한 언어",
description="이미지에서 중국어를 한국어로 번역한 언어",
)
product_info: Optional[Dict] = Field(
None, title="상품 정보", description="블로그 콘텐츠에 포함할 상품 정보"
)
content_type: Optional[str] = Field(
None, title="콘텐츠 타입", description="생성할 콘텐츠 유형"
)
target_length: Optional[int] = Field(
None, title="목표 글자 수", description="생성할 콘텐츠의 목표 길이"
uploaded_images: Optional[List[Dict]] = Field(
None,
title="업로드된 이미지",
description="S3에 업로드된 이미지 목록 (크기 정보 포함)",
)


Expand Down
Loading
Loading