mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2025-03-01 10:51:57 +08:00
29 lines
556 B
TypeScript
29 lines
556 B
TypeScript
![]() |
export enum ArtistApiNames {
|
||
|
FETCH_ARTIST = 'fetchArtist',
|
||
|
FETCH_ARTIST_ALBUMS = 'fetchArtistAlbums',
|
||
|
}
|
||
|
|
||
|
// 歌手详情
|
||
|
export interface FetchArtistParams {
|
||
|
id: number
|
||
|
}
|
||
|
export interface FetchArtistResponse {
|
||
|
code: number
|
||
|
more: boolean
|
||
|
artist: Artist
|
||
|
hotSongs: Track[]
|
||
|
}
|
||
|
|
||
|
// 获取歌手的专辑列表
|
||
|
export interface FetchArtistAlbumsParams {
|
||
|
id: number
|
||
|
limit?: number // default: 50
|
||
|
offset?: number // default: 0
|
||
|
}
|
||
|
export interface FetchArtistAlbumsResponse {
|
||
|
code: number
|
||
|
hotAlbums: Album[]
|
||
|
more: boolean
|
||
|
artist: Artist
|
||
|
}
|