mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 05:38:04 +00:00
feat: updates
This commit is contained in:
parent
ebebf2a733
commit
a1b0bcf4d3
68 changed files with 4776 additions and 5559 deletions
|
|
@ -5,6 +5,8 @@ import {
|
|||
SearchTypes,
|
||||
MultiMatchSearchParams,
|
||||
MultiMatchSearchResponse,
|
||||
FetchSearchSuggestionsParams,
|
||||
FetchSearchSuggestionsResponse,
|
||||
} from '@/shared/api/Search'
|
||||
|
||||
// 搜索
|
||||
|
|
@ -29,3 +31,14 @@ export function multiMatchSearch(
|
|||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 搜索建议
|
||||
export function fetchSearchSuggestions(
|
||||
params: FetchSearchSuggestionsParams
|
||||
): Promise<FetchSearchSuggestionsResponse> {
|
||||
return request({
|
||||
url: '/search/suggest',
|
||||
method: 'get',
|
||||
params,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue