mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-23 15:47:23 +08:00
feat: 添加历史日推功能
This commit is contained in:
@@ -188,3 +188,25 @@ export function subscribeAlbum(params: { t: number; id: number }) {
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取历史日推可用日期列表
|
||||
*/
|
||||
export function getHistoryRecommendDates() {
|
||||
return request({
|
||||
url: '/history/recommend/songs',
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取历史日推详情数据
|
||||
* @param date 日期,格式:YYYY-MM-DD
|
||||
*/
|
||||
export function getHistoryRecommendSongs(date: string) {
|
||||
return request({
|
||||
url: '/history/recommend/songs/detail',
|
||||
method: 'get',
|
||||
params: { date }
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user