feat(marketing): 직접 입력 경로에 official_site_url 입력 지원

POST /marketing 요청에 official_site_url(선택, 기본 null)을 추가한다.
http/https 스킴만 허용하고 2048자 초과는 422로 거부하며, 값이 있으면
marketing.official_site_url에 저장돼 기존 영상 조회 응답에 그대로 노출된다.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CVSeUT2pEmeHc6hG6gVXUS
This commit is contained in:
HyeongBaeYangandClaude Fable 5 committed 2026-08-21 10:57:42 +09:00
1 parent 1ef8e82638
commit 98c6515192
2 files changed
+21 -1

No files matched your search

+2
View File
@@ -494,6 +494,7 @@ async def _crawling_logic(url: str, session: AsyncSession):
- **customer_name**: 업체명 / 브랜드명 (필수)
- **address**: 도로명 또는 지번 주소 (필수)
- **category**: 업종/카테고리 자유 입력 (선택, 예: 펜션, 카페). 비우면 업체명 기반 AI 분류
- **official_site_url**: 업체 공식 홈페이지 링크 (선택, http/https만 허용, 최대 2048자). 영상 응답의 official_site_url로 노출
## 반환 정보
- **processed_info**: 가공된 장소 정보 (customer_name, region, detail_region_info)
@@ -537,6 +538,7 @@ async def manual_marketing(
# Step 3: 분석 결과 DB 저장 (place_id=None — 네이버 장소와 연결되지 않음)
marketing_intel = MarketingIntel(
place_id=None,
official_site_url=request_body.official_site_url,
intel_result=marketing_analysis.model_dump(),
)
session.add(marketing_intel)