mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-23 23:57:22 +08:00
feat: 历史记录页面 添加本地和云端两种记录支持,支持歌曲、歌单、专辑
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user