mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 02:13:33 +00:00
Add song detail controller
This commit is contained in:
parent
2cefc092ce
commit
c4fb9a2e72
4 changed files with 37 additions and 3 deletions
|
|
@ -11,6 +11,7 @@ import type {
|
|||
AlbumArtistDetailQuery,
|
||||
TopSongListQuery,
|
||||
SearchQuery,
|
||||
SongDetailQuery,
|
||||
} from './types';
|
||||
|
||||
export const queryKeys = {
|
||||
|
|
@ -88,6 +89,10 @@ export const queryKeys = {
|
|||
root: (serverId: string) => [serverId] as const,
|
||||
},
|
||||
songs: {
|
||||
detail: (serverId: string, query?: SongDetailQuery) => {
|
||||
if (query) return [serverId, 'songs', 'detail', query] as const;
|
||||
return [serverId, 'songs', 'detail'] as const;
|
||||
},
|
||||
list: (serverId: string, query?: SongListQuery) => {
|
||||
if (query) return [serverId, 'songs', 'list', query] as const;
|
||||
return [serverId, 'songs', 'list'] as const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue