feat: updates

This commit is contained in:
qier222 2022-07-11 11:06:41 +08:00
parent 0b4baa3eff
commit 222fb02355
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
77 changed files with 654 additions and 551 deletions

View file

@ -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
}