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
884f3df41a
commit
c6c59b2cd9
84 changed files with 3531 additions and 2616 deletions
|
|
@ -5,6 +5,7 @@ export enum UserApiNames {
|
|||
FetchUserAlbums = 'fetchUserAlbums',
|
||||
FetchUserArtists = 'fetchUserArtists',
|
||||
FetchListenedRecords = 'fetchListenedRecords',
|
||||
FetchUserVideos = 'fetchUserVideos',
|
||||
}
|
||||
|
||||
// 获取账号详情
|
||||
|
|
@ -107,6 +108,14 @@ export interface FetchUserArtistsResponse {
|
|||
count: number
|
||||
data: Artist[]
|
||||
}
|
||||
// 获取收藏的MV
|
||||
export interface FetchUserVideosParams {}
|
||||
export interface FetchUserVideosResponse {
|
||||
code: number
|
||||
hasMore: boolean
|
||||
count: number
|
||||
data: Video[]
|
||||
}
|
||||
|
||||
// 听歌排名
|
||||
export interface FetchListenedRecordsParams {
|
||||
|
|
|
|||
16
packages/shared/interface.d.ts
vendored
16
packages/shared/interface.d.ts
vendored
|
|
@ -206,3 +206,19 @@ declare interface User {
|
|||
anchor: boolean
|
||||
avatarImgId_str: string
|
||||
}
|
||||
|
||||
declare interface Video {
|
||||
alg: null
|
||||
aliaName: string
|
||||
coverUrl: string
|
||||
creator: { userId: number; userName: string }[]
|
||||
userId: number
|
||||
userName: string
|
||||
durationms: number
|
||||
markTypes: null
|
||||
playTime: number
|
||||
title: string
|
||||
transName: string
|
||||
type: number
|
||||
vid: string
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue