mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 21:58:03 +00:00
feat: updates
This commit is contained in:
parent
47e41dea9b
commit
ebebf2a733
160 changed files with 4148 additions and 2001 deletions
|
|
@ -2,6 +2,7 @@ export enum ArtistApiNames {
|
|||
FetchArtist = 'fetchArtist',
|
||||
FetchArtistAlbums = 'fetchArtistAlbums',
|
||||
FetchSimilarArtists = 'fetchSimilarArtists',
|
||||
FetchArtistMV = 'fetchArtistMV',
|
||||
}
|
||||
|
||||
// 歌手详情
|
||||
|
|
@ -36,3 +37,39 @@ export interface FetchSimilarArtistsResponse {
|
|||
code: number
|
||||
artists: Artist[]
|
||||
}
|
||||
|
||||
// 获取歌手MV
|
||||
export interface FetchArtistMVParams {
|
||||
id: number
|
||||
offset?: number
|
||||
limit?: number
|
||||
}
|
||||
export interface FetchArtistMVResponse {
|
||||
code: number
|
||||
hasMore: boolean
|
||||
time: number
|
||||
mvs: {
|
||||
artist: Artist
|
||||
artistName: string
|
||||
duration: number
|
||||
id: number
|
||||
imgurl: string
|
||||
imgurl16v9: string
|
||||
name: string
|
||||
playCount: number
|
||||
publishTime: string
|
||||
status: number
|
||||
subed: boolean
|
||||
}[]
|
||||
}
|
||||
|
||||
// 收藏歌手
|
||||
export interface LikeAArtistParams {
|
||||
id: number
|
||||
like: boolean
|
||||
}
|
||||
export interface LikeAArtistResponse {
|
||||
code: number
|
||||
data: null
|
||||
message: string
|
||||
}
|
||||
|
|
|
|||
80
packages/shared/api/MV.ts
Normal file
80
packages/shared/api/MV.ts
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
export enum MVApiNames {
|
||||
FetchMV = 'fetchMV',
|
||||
FetchMVUrl = 'fetchMVUrl',
|
||||
}
|
||||
|
||||
// MV详情
|
||||
export interface FetchMVParams {
|
||||
mvid: number
|
||||
}
|
||||
export interface FetchMVResponse {
|
||||
code: number
|
||||
loadingPic: string
|
||||
bufferPic: string
|
||||
loadingPicFS: string
|
||||
bufferPicFS: string
|
||||
data: {
|
||||
artistId: number
|
||||
artistName: string
|
||||
artists: Artist[]
|
||||
briefDesc: string
|
||||
brs: {
|
||||
br: number
|
||||
point: number
|
||||
size: number
|
||||
}[]
|
||||
commentCount: number
|
||||
commentThreadId: string
|
||||
cover: string
|
||||
coverId: number
|
||||
coverId_str: string
|
||||
desc: string
|
||||
duration: number
|
||||
id: number
|
||||
nType: number
|
||||
name: string
|
||||
playCount: number
|
||||
price: null | unknown
|
||||
publishTime: string
|
||||
shareCount: number
|
||||
subCount: number
|
||||
videoGroup: unknown[]
|
||||
}
|
||||
mp: {
|
||||
cp: number
|
||||
dl: number
|
||||
fee: number
|
||||
id: number
|
||||
msg: null | string
|
||||
mvFee: number
|
||||
normal: boolean
|
||||
payed: number
|
||||
pl: number
|
||||
sid: number
|
||||
st: number
|
||||
unauthorized: boolean
|
||||
}
|
||||
}
|
||||
|
||||
// MV地址
|
||||
export interface FetchMVUrlParams {
|
||||
id: number
|
||||
r?: number
|
||||
}
|
||||
export interface FetchMVUrlResponse {
|
||||
code: number
|
||||
data: {
|
||||
code: number
|
||||
expi: number
|
||||
fee: number
|
||||
id: number
|
||||
md5: string
|
||||
msg: string
|
||||
mvFee: number
|
||||
promotionVo: null | unknown
|
||||
r: number
|
||||
size: number
|
||||
st: number
|
||||
url: string
|
||||
}
|
||||
}
|
||||
|
|
@ -3,7 +3,7 @@ export enum UserApiNames {
|
|||
FetchUserLikedTracksIds = 'fetchUserLikedTracksIDs',
|
||||
FetchUserPlaylists = 'fetchUserPlaylists',
|
||||
FetchUserAlbums = 'fetchUserAlbums',
|
||||
FetchUserArtist = 'fetchUserArtists',
|
||||
FetchUserArtists = 'fetchUserArtists',
|
||||
FetchListenedRecords = 'fetchListenedRecords',
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue