feat: 添加文件名序号匹配规则功能

- 新增 FilenameUtils 工具类,支持从文件名中提取3位数字序号
- 扩展 SegmentMatchingRule 枚举,添加 FilenameSequence 匹配规则
- 在 MaterialMatchingService 中实现基于文件名序号的匹配逻辑
- 确保每个模板只能使用一个序号为001的视频文件
- 添加全面的单元测试和集成测试
- 支持多种文件名格式:name_001.ext, 001_name.ext, name001.ext 等

遵循 promptx/tauri-desktop-app-expert 开发规范
This commit is contained in:
imeepos
2025-07-21 19:01:01 +08:00
parent 8dfdf36a47
commit 5091493a8c
6 changed files with 825 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
pub mod database;
pub mod connection_pool;
pub mod file_system;
pub mod filename_utils;
pub mod performance;
pub mod event_bus;
pub mod ffmpeg;