mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
feat: updates
This commit is contained in:
parent
0b4baa3eff
commit
222fb02355
77 changed files with 654 additions and 551 deletions
|
|
@ -5,6 +5,7 @@ import {
|
|||
} from './api/Artist'
|
||||
import { FetchAlbumResponse } from './api/Album'
|
||||
import {
|
||||
FetchListenedRecordsResponse,
|
||||
FetchUserAccountResponse,
|
||||
FetchUserAlbumsResponse,
|
||||
FetchUserArtistsResponse,
|
||||
|
|
@ -37,6 +38,7 @@ export const enum APIs {
|
|||
UserArtists = 'artist/sublist',
|
||||
UserPlaylist = 'user/playlist',
|
||||
SimilarArtist = 'simi/artist',
|
||||
ListenedRecords = 'user/record',
|
||||
|
||||
// not netease api
|
||||
CoverColor = 'cover_color',
|
||||
|
|
@ -61,6 +63,7 @@ export interface APIsParams {
|
|||
[APIs.SimilarArtist]: { id: number }
|
||||
[APIs.CoverColor]: { id: number }
|
||||
[APIs.VideoCover]: { id: number }
|
||||
[APIs.ListenedRecords]: { id: number; type: number }
|
||||
}
|
||||
|
||||
export interface APIsResponse {
|
||||
|
|
@ -81,4 +84,5 @@ export interface APIsResponse {
|
|||
[APIs.SimilarArtist]: FetchSimilarArtistsResponse
|
||||
[APIs.CoverColor]: string | undefined
|
||||
[APIs.VideoCover]: string | undefined
|
||||
[APIs.ListenedRecords]: FetchListenedRecordsResponse
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue