feat: 观看历史分类、记录视频播放进度

This commit is contained in:
guozhigq
2023-06-21 12:40:21 +08:00
parent fe93eb690c
commit e738d58766
9 changed files with 167 additions and 24 deletions

View File

@ -0,0 +1,23 @@
enum BusinessType {
// 普通视频
archive,
// 剧集(番剧 / 影视)
pgc,
// 直播
live,
// 文章
articleList,
// 文章
article,
hiddenDurationType,
showBadge
}
extension BusinessTypeExtension on BusinessType {
String get type =>
['archive', 'pgc', 'live', 'article-list', 'article'][index];
// 隐藏时长
List get hiddenDurationType => ['live', 'article-list', 'article'];
// 右上
List get showBadge => ['pgc', 'article-list', 'article'];
}