mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-06 17:32:08 +08:00
feat: ts support, artist part
This commit is contained in:
61
module_types/artisit_list.d.ts
vendored
Normal file
61
module_types/artisit_list.d.ts
vendored
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
import { RequestBaseConfig } from './base'
|
||||||
|
|
||||||
|
export interface ArtistListRequestConfig extends RequestBaseConfig {
|
||||||
|
area: '-1' | '7' | '96' | '8' | '16' | '0'
|
||||||
|
initial?:
|
||||||
|
| 'a'
|
||||||
|
| 'b'
|
||||||
|
| 'c'
|
||||||
|
| 'd'
|
||||||
|
| 'e'
|
||||||
|
| 'f'
|
||||||
|
| 'g'
|
||||||
|
| 'h'
|
||||||
|
| 'i'
|
||||||
|
| 'j'
|
||||||
|
| 'k'
|
||||||
|
| 'l'
|
||||||
|
| 'm'
|
||||||
|
| 'n'
|
||||||
|
| 'o'
|
||||||
|
| 'p'
|
||||||
|
| 'q'
|
||||||
|
| 'r'
|
||||||
|
| 's'
|
||||||
|
| 't'
|
||||||
|
| 'u'
|
||||||
|
| 'v'
|
||||||
|
| 'w'
|
||||||
|
| 'x'
|
||||||
|
| 'y'
|
||||||
|
| 'z'
|
||||||
|
| 'A'
|
||||||
|
| 'B'
|
||||||
|
| 'C'
|
||||||
|
| 'D'
|
||||||
|
| 'E'
|
||||||
|
| 'F'
|
||||||
|
| 'G'
|
||||||
|
| 'H'
|
||||||
|
| 'I'
|
||||||
|
| 'J'
|
||||||
|
| 'K'
|
||||||
|
| 'L'
|
||||||
|
| 'M'
|
||||||
|
| 'N'
|
||||||
|
| 'O'
|
||||||
|
| 'P'
|
||||||
|
| 'Q'
|
||||||
|
| 'R'
|
||||||
|
| 'S'
|
||||||
|
| 'T'
|
||||||
|
| 'U'
|
||||||
|
| 'V'
|
||||||
|
| 'W'
|
||||||
|
| 'X'
|
||||||
|
| 'Y'
|
||||||
|
| 'Z'
|
||||||
|
offset?: number
|
||||||
|
limit?: number
|
||||||
|
type?: '1' | '2' | '3'
|
||||||
|
}
|
5
module_types/artist_desc.d.ts
vendored
Normal file
5
module_types/artist_desc.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import { RequestBaseConfig } from './base'
|
||||||
|
|
||||||
|
export interface ArtistDescRequestConfig extends RequestBaseConfig {
|
||||||
|
id: string
|
||||||
|
}
|
7
module_types/artist_mv.d.ts
vendored
Normal file
7
module_types/artist_mv.d.ts
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import { RequestBaseConfig } from './base'
|
||||||
|
|
||||||
|
export interface ArtistMVRequestConfig extends RequestBaseConfig {
|
||||||
|
artistId: string
|
||||||
|
limit: number
|
||||||
|
offset: number
|
||||||
|
}
|
8
module_types/artist_song.d.ts
vendored
Normal file
8
module_types/artist_song.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import { RequestBaseConfig } from './base'
|
||||||
|
|
||||||
|
export interface ArtistSongRequestConfig extends RequestBaseConfig {
|
||||||
|
id: string
|
||||||
|
order?: 'hot' | 'time'
|
||||||
|
offset?: number
|
||||||
|
limit?: number
|
||||||
|
}
|
6
module_types/artist_sub.d.ts
vendored
Normal file
6
module_types/artist_sub.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import { RequestBaseConfig } from './base'
|
||||||
|
|
||||||
|
export interface ArtistSubRequestConfig extends RequestBaseConfig {
|
||||||
|
artistId: string
|
||||||
|
t: 'sub' | 'unsub'
|
||||||
|
}
|
6
module_types/artist_sublist.d.ts
vendored
Normal file
6
module_types/artist_sublist.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import { RequestBaseConfig } from './base'
|
||||||
|
|
||||||
|
export interface ArtistSubListRequestConfig extends RequestBaseConfig {
|
||||||
|
limit?: number
|
||||||
|
offset?: number
|
||||||
|
}
|
5
module_types/artist_top_song.d.ts
vendored
Normal file
5
module_types/artist_top_song.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import { RequestBaseConfig } from './base'
|
||||||
|
|
||||||
|
export interface ArtistTopSongRequestConfig extends RequestBaseConfig {
|
||||||
|
id: string
|
||||||
|
}
|
5
module_types/artists.d.ts
vendored
Normal file
5
module_types/artists.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import { RequestBaseConfig } from './base'
|
||||||
|
|
||||||
|
export interface ArtistsRequestConfig extends RequestBaseConfig {
|
||||||
|
id: string
|
||||||
|
}
|
Reference in New Issue
Block a user