import http from '@utils/http'; enum Api { Search = '/api/search', SearchRecord = '/api/searchRecord', DeleteSearchRecord = '/api/delSearchRecord', } /** * 查询搜索列表 * @returns SearchResult */ export function getSearchList(keyword: string) { return http.get(Api.Search, { keyword }); } /** * 查询搜索记录 */ export function getSearchRecord() { return http.get(Api.SearchRecord); } /** * 删除搜索记录 */ export function deleteSearchRecord() { return http.post(Api.DeleteSearchRecord); }