feat: 字幕管理 - 增删改查 + 批量导入(基于片段config) #394

Merged
xiaoxia merged 4 commits from feat/subtitle-management into develop 2026-07-17 10:50:45 +08:00

4 Commits

Author SHA1 Message Date
CI Bot 7d644eb584 fix: 修复rebase冲突导致的测试函数错位
CI Build & Deploy Pipeline / Build Staging API Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production API Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production Web Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI Build & Deploy Pipeline / Deploy Production (pull_request) Has been skipped
CI Build & Deploy Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI Build & Deploy Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI Build & Deploy Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 15s
AI Code Review / AI Code Review (pull_request) Failing after 34s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 1m3s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Successful in 2m59s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 3m22s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 2m39s
2026-07-17 10:02:37 +08:00
CI Bot af127b58e7 chore: 移除误提交的.coverage文件 2026-07-17 10:02:33 +08:00
CI Bot 0bd290dadc fix: delete_subtitle 204响应FastAPI断言失败
- 添加response_model=None和response_class=Response
- 修复204状态码与response body冲突的问题
2026-07-17 10:02:30 +08:00
CI Bot ef897cba78 feat: 字幕管理 - 增删改查 + 批量导入(基于片段config)
- EditPlanService 字幕管理 6 个方法:
  - list_subtitles / get_subtitle
  - add_subtitle / update_subtitle / delete_subtitle
  - batch_update_subtitles(全量替换,支持SRT/ASR导入)
- 字幕存储在 clip.config["subtitles"] 中,无需 migration
- 每条字幕: id / start / end / text / style
- 自动按时间排序、校验时间合法性
- API: 5个接口(列表/新增/更新/删除/批量更新)
  - 项目级权限校验
- 16个单元测试全覆盖
2026-07-17 10:02:27 +08:00