initial commit
This commit is contained in:
60
mock/ranking.mock.ts
Normal file
60
mock/ranking.mock.ts
Normal file
@@ -0,0 +1,60 @@
|
||||
const rankingList = [
|
||||
{
|
||||
id: '1',
|
||||
rank: 1,
|
||||
title: '深夜的序章',
|
||||
subTitle: 'Premium Edition 2024',
|
||||
cover: 'https://images.unsplash.com/photo-1485846234645-a62644f84728?q=80&w=200&auto=format&fit=crop',
|
||||
rating: 9.8,
|
||||
category: '剧情',
|
||||
trend: 'up',
|
||||
viewCount: 1250000,
|
||||
releaseDate: '2024-01-15',
|
||||
},
|
||||
{
|
||||
id: '2',
|
||||
rank: 2,
|
||||
title: '霓虹之舞',
|
||||
subTitle: 'Limited Director Cut',
|
||||
cover: 'https://images.unsplash.com/photo-1478720568477-152d9b164e26?q=80&w=200&auto=format&fit=crop',
|
||||
rating: 9.5,
|
||||
category: '动作',
|
||||
trend: 'stable',
|
||||
viewCount: 890000,
|
||||
releaseDate: '2024-02-01',
|
||||
},
|
||||
{
|
||||
id: '3',
|
||||
rank: 3,
|
||||
title: '极速传说',
|
||||
subTitle: '4K Ultra High Speed',
|
||||
cover: 'https://images.unsplash.com/photo-1536440136628-849c177e76a1?q=80&w=200&auto=format&fit=crop',
|
||||
rating: 9.2,
|
||||
category: '竞技',
|
||||
trend: 'down',
|
||||
viewCount: 750000,
|
||||
releaseDate: '2023-12-20',
|
||||
},
|
||||
{
|
||||
id: '4',
|
||||
rank: 4,
|
||||
title: '蓝色海洋',
|
||||
subTitle: 'Ocean Documentary Visuals',
|
||||
cover: 'https://images.unsplash.com/photo-1439405326854-014607f694d7?q=80&w=200&auto=format&fit=crop',
|
||||
rating: 9.0,
|
||||
category: '纪录片',
|
||||
trend: 'up',
|
||||
viewCount: 620000,
|
||||
releaseDate: '2024-02-10',
|
||||
}
|
||||
];
|
||||
|
||||
export default {
|
||||
'GET /api/ranking/list': (req: any, res: any) => {
|
||||
res.send({
|
||||
success: true,
|
||||
data: rankingList,
|
||||
total: rankingList.length,
|
||||
});
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user