mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-18 14:18:03 +00:00
feat: updates
This commit is contained in:
parent
ebebf2a733
commit
a1b0bcf4d3
68 changed files with 4776 additions and 5559 deletions
|
|
@ -1,6 +1,7 @@
|
|||
export enum SearchApiNames {
|
||||
Search = 'search',
|
||||
MultiMatchSearch = 'multiMatchSearch',
|
||||
FetchSearchSuggestions = 'fetchSearchSuggestions',
|
||||
}
|
||||
|
||||
// 搜索
|
||||
|
|
@ -80,3 +81,19 @@ export interface MultiMatchSearchResponse {
|
|||
orders: Array<'artist' | 'album'>
|
||||
}
|
||||
}
|
||||
|
||||
// 搜索建议
|
||||
export interface FetchSearchSuggestionsParams {
|
||||
keywords: string
|
||||
type?: 'mobile'
|
||||
}
|
||||
export interface FetchSearchSuggestionsResponse {
|
||||
code: number
|
||||
result: {
|
||||
albums?: Album[]
|
||||
artists?: Artist[]
|
||||
playlists?: Playlist[]
|
||||
songs?: Track[]
|
||||
order: Array<'songs' | 'artists' | 'albums' | 'playlists'>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue