This commit is contained in:
lz_db
2026-10-25 11:46:44 +08:00
parent 893dfed0ed
commit 494f667719
63 changed files with 5213 additions and 239 deletions
+9 -1
View File
@@ -71,14 +71,22 @@ class UploadService {
/// 视频分类
class VideoCategory {
VideoCategory({required this.categoryId, required this.name});
VideoCategory({
required this.categoryId,
required this.name,
this.hasSeries = false,
});
final int categoryId;
final String name;
/// 系列型分类(如 AI短剧):列表按「剧」聚合展示,一部剧只占一张卡片
final bool hasSeries;
factory VideoCategory.fromJson(Map<String, dynamic> json) => VideoCategory(
categoryId: (json['category_id'] as num?)?.toInt() ?? 0,
name: (json['name'] as String?) ?? '',
hasSeries: (json['has_series'] as bool?) ?? false,
);
}