mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +00:00
feat: 支持收藏歌曲
This commit is contained in:
parent
bbcf1f9340
commit
bbd5299341
7 changed files with 127 additions and 49 deletions
|
|
@ -2,7 +2,7 @@ import request from '@/utils/request'
|
|||
|
||||
export enum UserApiNames {
|
||||
FETCH_USER_ACCOUNT = 'fetchUserAccount',
|
||||
FETCH_USER_LIKED_SONGS_IDS = 'fetchUserLikedSongsIDs',
|
||||
FETCH_USER_LIKED_TRACKS_IDS = 'fetchUserLikedTracksIDs',
|
||||
FETCH_USER_PLAYLISTS = 'fetchUserPlaylists',
|
||||
}
|
||||
|
||||
|
|
@ -113,17 +113,17 @@ export function fetchUserPlaylists(
|
|||
})
|
||||
}
|
||||
|
||||
export interface FetchUserLikedSongsIDsParams {
|
||||
export interface FetchUserLikedTracksIDsParams {
|
||||
uid: number
|
||||
}
|
||||
export interface FetchUserLikedSongsIDsResponse {
|
||||
export interface FetchUserLikedTracksIDsResponse {
|
||||
code: number
|
||||
checkPoint: number
|
||||
ids: number[]
|
||||
}
|
||||
export function fetchUserLikedSongsIDs(
|
||||
params: FetchUserLikedSongsIDsParams
|
||||
): Promise<FetchUserLikedSongsIDsResponse> {
|
||||
export function fetchUserLikedTracksIDs(
|
||||
params: FetchUserLikedTracksIDsParams
|
||||
): Promise<FetchUserLikedTracksIDsResponse> {
|
||||
return request({
|
||||
url: '/likelist',
|
||||
method: 'get',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue