feat: updates

This commit is contained in:
qier222 2022-08-22 16:51:23 +08:00
parent ebebf2a733
commit a1b0bcf4d3
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
68 changed files with 4776 additions and 5559 deletions

View file

@ -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'>
}
}