This commit is contained in:
qier222 2023-09-04 12:51:56 +08:00
parent 32050e4553
commit 6aee8ae38e
No known key found for this signature in database
41 changed files with 523 additions and 415 deletions

View file

@ -27,6 +27,8 @@ export const enum IpcChannels {
GetAlbumFromAppleMusic = 'GetAlbumFromAppleMusic',
GetArtistFromAppleMusic = 'GetArtistFromAppleMusic',
Logout = 'Logout',
GetCachePath = 'GetCachePath',
ClearAudioCache = 'ClearAudioCache',
}
// ipcMain.on params
@ -70,6 +72,8 @@ export interface IpcChannelsParams {
}
[IpcChannels.GetArtistFromAppleMusic]: { id: number; name: string }
[IpcChannels.Logout]: void
[IpcChannels.GetCachePath]: void
[IpcChannels.ClearAudioCache]: void
}
// ipcRenderer.on params
@ -95,4 +99,6 @@ export interface IpcChannelsReturns {
[IpcChannels.GetAlbumFromAppleMusic]: AppleMusicAlbum | undefined
[IpcChannels.GetArtistFromAppleMusic]: AppleMusicArtist | undefined
[IpcChannels.Logout]: void
[IpcChannels.GetCachePath]: string
[IpcChannels.ClearAudioCache]: boolean
}