feat: 前端平台规则页面支持文档上传 + AI 解析

- 新增前端类型定义 (ParsedRulesData, BrandPlatformRuleResponse 等)
- 新增 4 个 API 方法 (parsePlatformRule, confirmPlatformRule, listBrandPlatformRules, deletePlatformRule)
- 重写品牌方规则页面平台规则 tab,支持文档上传→AI解析→确认/编辑→生效流程
- 保留违禁词/竞品/白名单三个 tab 原有功能
- 支持 USE_MOCK 双模式

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Your Name
2026-02-10 13:32:13 +08:00
co-authored by Claude Opus 4.6
parent fed361b9b3
commit 3a2598c956
4 changed files with 653 additions and 596 deletions
+1
View File
@@ -109,6 +109,7 @@ class ScriptReviewRequest(BaseModel):
platform: Platform = Field(..., description="投放平台")
brand_id: str = Field(..., description="品牌 ID")
required_points: Optional[list[str]] = Field(None, description="必要卖点列表")
blacklist_words: Optional[list[dict]] = Field(None, description="Brief 黑名单词 [{word, reason}]")
soft_risk_context: Optional[SoftRiskContext] = Field(None, description="软性风控上下文")