feat: 搜索直播间、用户

This commit is contained in:
guozhigq
2023-06-20 22:52:47 +08:00
parent 7e7892aab2
commit c2f8f143f8
15 changed files with 801 additions and 59 deletions

View File

@ -0,0 +1,28 @@
// ignore_for_file: constant_identifier_names
enum SearchType {
// 视频video
video,
// 番剧media_bangumi,
// media_bangumi,
// 影视media_ft
// media_ft,
// 直播间及主播live
// live,
// 直播间live_room
live_room,
// 主播live_user
// live_user,
// 专栏article
// article,
// 话题topic
// topic,
// 用户bili_user
bili_user,
// 相簿photo
// photo
}
extension SearchTypeExtension on SearchType {
String get type => ['video', 'live_room', 'bili_user'][index];
String get label => ['视频', '直播间', '用户'][index];
}