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

@ -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,
})
}