feat: 历史记录页面 添加本地和云端两种记录支持,支持歌曲、歌单、专辑

This commit is contained in:
alger
2025-10-22 21:51:16 +08:00
parent a9adb6be36
commit 6d7ba6dbae
16 changed files with 1045 additions and 137 deletions
+27
View File
@@ -20,6 +20,33 @@ export function getUserRecord(uid: number, type: number = 0) {
} as any);
}
// 最近播放-歌曲
// /record/recent/song
export function getRecentSongs(limit: number = 100) {
return request.get('/record/recent/song', {
params: { limit },
noRetry: true
} as any);
}
// 最近播放-歌单
// /record/recent/playlist
export function getRecentPlaylists(limit: number = 100) {
return request.get('/record/recent/playlist', {
params: { limit },
noRetry: true
} as any);
}
// 最近播放-专辑
// /record/recent/album
export function getRecentAlbums(limit: number = 100) {
return request.get('/record/recent/album', {
params: { limit },
noRetry: true
} as any);
}
// 获取用户关注列表
// /user/follows?uid=32953014
export function getUserFollows(uid: number, limit: number = 30, offset: number = 0) {