refactor: create poster content request 변수 수정

This commit is contained in:
yuhalog 2025-06-19 13:47:10 +09:00
parent 55ce0749cb
commit 9cfa8c43a2
16 changed files with 15 additions and 4 deletions

View File

@ -141,10 +141,8 @@ def create_app():
title=data.get('title'), title=data.get('title'),
category=data.get('category'), category=data.get('category'),
images=data.get('images', []), images=data.get('images', []),
photoStyle=data.get('photoStyle'),
requirement=data.get('requirement'), requirement=data.get('requirement'),
menuName=data.get('menuName'), menuName=data.get('menuName'),
eventName=data.get('eventName'),
startDate=start_date, startDate=start_date,
endDate=end_date endDate=end_date
) )

View File

@ -34,12 +34,22 @@ class PosterContentGetRequest:
title: str title: str
category: str category: str
images: List[str] # 이미지 URL 리스트 images: List[str] # 이미지 URL 리스트
photoStyle: Optional[str] = None
requirement: Optional[str] = None requirement: Optional[str] = None
menuName: Optional[str] = None menuName: Optional[str] = None
eventName: Optional[str] = None
startDate: Optional[date] = None # LocalDate -> date startDate: Optional[date] = None # LocalDate -> date
endDate: Optional[date] = None # LocalDate -> date endDate: Optional[date] = None # LocalDate -> date
store_name: Optional[str] = None
business_type: Optional[str] = None
location: Optional[str] = None
class Config:
schema_extra = {
"example": {
"store_name": "더블샷 카페",
"business_type": "카페",
"location": "서울시 강남구 역삼동",
}
}
# 기존 모델들은 유지 # 기존 모델들은 유지

View File

View File

@ -237,6 +237,8 @@ class PosterService:
prompt = f""" prompt = f"""
## {main_image}를 활용한 이벤트 홍보 포스터 디자인 요청 ## {main_image}를 활용한 이벤트 홍보 포스터 디자인 요청
메인 이미지에서 최대한 배경만 변경하는 식으로 활용하기
### 📋 기본 정보 ### 📋 기본 정보
이벤트 이미지 : {main_image} 이벤트 이미지 : {main_image}
@ -252,6 +254,7 @@ class PosterService:
### 🎨 이벤트 특화 디자인 요구사항 ### 🎨 이벤트 특화 디자인 요구사항
메인 이미지 처리 메인 이미지 처리
- {main_image} 변경 없이 그대로 사용해주세요. - {main_image} 변경 없이 그대로 사용해주세요.
- AI가 그린 같지 않은, 현실적인 사진으로 사용
- 이벤트의 핵심 내용을 시각적으로 강조 - 이벤트의 핵심 내용을 시각적으로 강조
- 포스터 전체 크기의 30% 영역에 배치 (텍스트 공간 확보) - 포스터 전체 크기의 30% 영역에 배치 (텍스트 공간 확보)
- 이벤트 분위기에 맞는 역동적인 배치 - 이벤트 분위기에 맞는 역동적인 배치

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB