feat: 新增剧集封面、集数管理与上传优化功能

1. 新增Cover实体类并注册到数据库模块
2. 为剧集添加总集数字段及自动创建集数槽功能
3. 新增管理员更新剧集集数接口
4. 优化发布剧集列表:支持标题过滤与默认分页大小10
5. 扩展MediaUploadJob实体字段,完善媒体上传流程
6. 重构订单与媒体服务,新增数据库持久化支持
7. 新增剧集标题过滤的端到端测试用例
This commit is contained in:
2026-07-02 15:46:29 +08:00
parent f342312b92
commit 0eeeea0c4d
9 changed files with 669 additions and 60 deletions

View File

@@ -102,6 +102,22 @@ export class DramasController {
return this.dramasService.updateEpisode(Number(id), dto);
}
@Patch('/api/admin/v1/dramas/:dramaId/episodes/:episodeId')
@ApiBearerAuth()
@UseGuards(AdminJwtAuthGuard, PermissionsGuard)
@RequirePermissions('episode:update')
updateDramaEpisode(
@Param('dramaId') dramaId: string,
@Param('episodeId') episodeId: string,
@Body() dto: UpdateEpisodeDto,
) {
return this.dramasService.updateDramaEpisode(
Number(dramaId),
Number(episodeId),
dto,
);
}
@Post('/api/admin/v1/dramas/:id/submit-review')
@ApiBearerAuth()
@UseGuards(AdminJwtAuthGuard, PermissionsGuard)
@@ -128,10 +144,12 @@ export class DramasController {
listPublishedDramas(
@Query('page') page?: string,
@Query('pageSize') pageSize?: string,
@Query('title') title?: string,
) {
return this.dramasService.listPublishedDramas({
page: Number(page) || 1,
pageSize: Number(pageSize) || 20,
pageSize: Number(pageSize) || 10,
title,
});
}