feat: 添加LibraryItem功能并优化筛选能力

1. 创建了完整的LibraryItem功能模块
   - 实体类:LibraryItem
   - Mapper:LibraryItemMapper
   - Service:LibraryItemService
   - Controller:LibraryItemController
   - 相关模型类

2. 将tags字段替换为四个独立字段
   - age:年龄(youth-青年,middle-中年,old-老年)
   - gender:性别(male-男性,female-女性)
   - scene:场景(emotion-情感,podcast-播客,education-教育)
   - language:语种(chinese-中文,english-英语)

3. 支持多条件筛选
   - 在pageList方法中添加了根据age、gender、scene、language字段筛选的逻辑
   - 优化了SQL查询性能

4. 生成了完整的SQL文件
   - 创建了dh_library_item表
   - 添加了合理的索引设计
   - 包含了示例数据
   - 提供了查询示例

5. 创建了.gitignore文件
   - 忽略了不必要的文件和目录
   - 优化了git仓库结构
This commit is contained in:
wangzhiwei 2026-01-08 11:06:50 +08:00
parent 26bf7326e0
commit cece5b745e
1 changed files with 14 additions and 14 deletions

View File

@ -39,18 +39,18 @@ public class DigitalHumanReq extends BaseReq {
*/
private String generatedVideoUrl;
// /**
// * 字幕项列表冗余存储用于快速回显
// */
// private String subtitle;
//
// /**
// * 字幕样式配置冗余或快照
// */
// private String subtitleStyle;
//
// /**
// * 特效列表冗余存储
// */
// private String effects;
/**
* 字幕项列表冗余存储用于快速回显
*/
private String subtitle;
/**
* 字幕样式配置冗余或快照
*/
private String subtitleStyle;
/**
* 特效列表冗余存储
*/
private String effects;
}