mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-06-19 04:57:32 +08:00
搜索
This commit is contained in:
+6
-1
@@ -1,6 +1,6 @@
|
||||
import request from "@/utils/request";
|
||||
import { IHotSinger } from "@/type/singer";
|
||||
import { ISearchKeyword } from "@/type/search";
|
||||
import { ISearchKeyword, IHotSearch } from "@/type/search";
|
||||
import { IPlayListSort } from "@/type/playlist";
|
||||
import { IRecommendMusic } from "@/type/music";
|
||||
import { IAlbumNew } from "@/type/album";
|
||||
@@ -24,6 +24,11 @@ export const getSearchKeyword = () => {
|
||||
return request.get<ISearchKeyword>("/search/default");
|
||||
};
|
||||
|
||||
// 获取热门搜索
|
||||
export const getHotSearch = () => {
|
||||
return request.get<IHotSearch>("/search/hot/detail");
|
||||
};
|
||||
|
||||
// 获取歌单分类
|
||||
export const getPlaylistCategory = () => {
|
||||
return request.get<IPlayListSort>("/playlist/catlist");
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
import request from "@/utils/request";
|
||||
import { ISearchDetail } from "@/type/search";
|
||||
|
||||
// 搜索内容
|
||||
export const getSearch = (keywords: any) => {
|
||||
return request.get<ISearchDetail>("/cloudsearch", {
|
||||
params: { keywords: keywords, type: 1018 },
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user