添加专辑推荐 播放进度条优化

This commit is contained in:
algerkong
2021-07-23 10:52:02 +08:00
parent bead4926ae
commit 4d33728398
9 changed files with 166 additions and 10 deletions
+6
View File
@@ -3,6 +3,7 @@ import { IHotSinger } from "@/type/singer";
import { ISearchKeyword } from "@/type/search";
import { IPlayListSort } from "@/type/playlist";
import { IRecommendMusic } from "@/type/music";
import { IAlbumNew } from "@/type/album";
interface IHotSingerParams {
offset: number;
@@ -32,3 +33,8 @@ export const getPlaylistCategory = () => {
export const getRecommendMusic = (params: IRecommendMusicParams) => {
return request.get<IRecommendMusic>("/personalized/newsong", { params });
};
// 获取最新专辑推荐
export const getNewAlbum = () => {
return request.get<IAlbumNew>("/album/newest");
};