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
a1b0bcf4d3
commit
884f3df41a
198 changed files with 4572 additions and 5336 deletions
44
packages/shared/db/netease.ts
Normal file
44
packages/shared/db/netease.ts
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
export const enum NeteaseTables {
|
||||
AccountData = 'AccountData',
|
||||
Album = 'Album',
|
||||
Artist = 'Artist',
|
||||
ArtistAlbum = 'ArtistAlbum',
|
||||
Audio = 'Audio',
|
||||
Lyric = 'Lyric',
|
||||
Playlist = 'Playlist',
|
||||
Track = 'Track',
|
||||
}
|
||||
interface CommonTableStructure {
|
||||
id: number
|
||||
json: string
|
||||
updatedAt: number
|
||||
}
|
||||
export interface NeteaseTablesStructures {
|
||||
[NeteaseTables.AccountData]: {
|
||||
id: string
|
||||
json: string
|
||||
updatedAt: number
|
||||
}
|
||||
[NeteaseTables.Album]: CommonTableStructure
|
||||
[NeteaseTables.Artist]: CommonTableStructure
|
||||
[NeteaseTables.ArtistAlbum]: CommonTableStructure
|
||||
[NeteaseTables.Audio]: {
|
||||
id: number
|
||||
br: number
|
||||
type: 'mp3' | 'flac' | 'ogg' | 'wav' | 'm4a' | 'aac' | 'unknown' | 'opus'
|
||||
source:
|
||||
| 'unknown'
|
||||
| 'netease'
|
||||
| 'migu'
|
||||
| 'kuwo'
|
||||
| 'kugou'
|
||||
| 'youtube'
|
||||
| 'qq'
|
||||
| 'bilibili'
|
||||
| 'joox'
|
||||
queriedAt: number
|
||||
}
|
||||
[NeteaseTables.Lyric]: CommonTableStructure
|
||||
[NeteaseTables.Playlist]: CommonTableStructure
|
||||
[NeteaseTables.Track]: CommonTableStructure
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue