feat: 观看历史分类、记录视频播放进度
This commit is contained in:
23
lib/models/common/business_type.dart
Normal file
23
lib/models/common/business_type.dart
Normal 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'];
|
||||
}
|
||||
Reference in New Issue
Block a user