mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +00:00
feat: monorepo
This commit is contained in:
parent
4d54060a4f
commit
42089d4996
200 changed files with 1530 additions and 1521 deletions
|
|
@ -1,31 +0,0 @@
|
|||
import request from '@/renderer/utils/request'
|
||||
import {
|
||||
SearchParams,
|
||||
SearchResponse,
|
||||
SearchTypes,
|
||||
MultiMatchSearchParams,
|
||||
MultiMatchSearchResponse,
|
||||
} from '@/shared/api/Search'
|
||||
|
||||
// 搜索
|
||||
export function search(params: SearchParams): Promise<SearchResponse> {
|
||||
return request({
|
||||
url: '/search',
|
||||
method: 'get',
|
||||
params: {
|
||||
...params,
|
||||
type: SearchTypes[params.type ?? SearchTypes.All],
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
// 搜索多重匹配
|
||||
export function multiMatchSearch(
|
||||
params: MultiMatchSearchParams
|
||||
): Promise<MultiMatchSearchResponse> {
|
||||
return request({
|
||||
url: '/search/multimatch',
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue