opt rank type

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-16 17:49:20 +08:00
parent 35bc4a6ece
commit 1326cc4966
3 changed files with 36 additions and 101 deletions

View File

@@ -1,92 +1,28 @@
// TODO named record or enum
const List rankTabsConfig = [
{
'rid': 0,
'label': '全站',
},
{
'season_type': 1,
'label': '番剧',
},
{
// 'rid': 168,
'season_type': 4,
'label': '国创',
},
{
'rid': 1005, //1,
'label': '动画',
},
{
'rid': 1003, // 3,
'label': '音乐',
},
{
'rid': 1004, // 129,
'label': '舞蹈',
},
{
'rid': 1008, // 4,
'label': '游戏',
},
{
'rid': 1010, // 36,
'label': '知识',
},
{
'rid': 1012, // 188,
'label': '科技',
},
{
'rid': 1018, //234,
'label': '运动',
},
{
'rid': 1013, // 223,
'label': '汽车',
},
{
'rid': 1020, // 211,
'label': '美食',
},
{
'rid': 1024, //217,
'label': '动物',
},
{
'rid': 1007, // 119,
'label': '鬼畜',
},
{
'rid': 1014, // 155,
'label': '时尚',
},
{
'rid': 1002, // 5,
'label': '娱乐',
},
{
'rid': 1001, // 181,
'label': '影视',
},
{
// 'rid': 177,
'season_type': 3,
'label': '纪录',
},
{
// 'rid': 23,
'season_type': 2,
'label': '电影',
},
{
// 'rid': 11,
'season_type': 5,
'label': '剧集',
},
{
// 'rid': 11,
'season_type': 7,
'label': '综艺',
},
];
enum RankType {
all('全站', rid: 0),
anime('番剧', seasonType: 1),
guochuang('国创', seasonType: 4),
douga('动画', rid: 1005),
music('音乐', rid: 1003),
dance('舞蹈', rid: 1004),
game('游戏', rid: 1008),
knowledge('知识', rid: 1010),
tech('科技', rid: 1012),
sports('运动', rid: 1018),
car('汽车', rid: 1013),
food('美食', rid: 1020),
animal('动物', rid: 1024),
kichiku('鬼畜', rid: 1007),
fashion('时尚', rid: 1014),
ent('娱乐', rid: 1002),
cinephile('影视', rid: 1001),
documentary('记录', seasonType: 3),
movie('电影', seasonType: 2),
tv('剧集', seasonType: 5),
variety('综艺', seasonType: 7);
final String label;
final int? rid;
final int? seasonType;
const RankType(this.label, {this.rid, this.seasonType});
}