mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
Album radio (#1759)
* added album radio feature --------- Co-authored-by: jeffvli <jeffvictorli@gmail.com>
This commit is contained in:
committed by
GitHub
parent
a78f5803a5
commit
4918b412b2
@@ -1337,6 +1337,15 @@ export enum LyricSource {
|
||||
NETEASE = 'NetEase',
|
||||
}
|
||||
|
||||
export type AlbumRadioArgs = BaseEndpointArgs & {
|
||||
query: AlbumRadioQuery;
|
||||
};
|
||||
|
||||
export type AlbumRadioQuery = {
|
||||
albumId: string;
|
||||
count?: number;
|
||||
};
|
||||
|
||||
export type ArtistRadioArgs = BaseEndpointArgs & {
|
||||
query: ArtistRadioQuery;
|
||||
};
|
||||
@@ -1369,6 +1378,7 @@ export type ControllerEndpoint = {
|
||||
getAlbumInfo?: (args: AlbumDetailArgs) => Promise<AlbumInfo>;
|
||||
getAlbumList: (args: AlbumListArgs) => Promise<AlbumListResponse>;
|
||||
getAlbumListCount: (args: AlbumListCountArgs) => Promise<number>;
|
||||
getAlbumRadio: (args: AlbumRadioArgs) => Promise<Song[]>;
|
||||
getArtistList: (args: ArtistListArgs) => Promise<ArtistListResponse>;
|
||||
getArtistListCount: (args: ArtistListCountArgs) => Promise<number>;
|
||||
getArtistRadio: (args: ArtistRadioArgs) => Promise<Song[]>;
|
||||
@@ -1490,6 +1500,7 @@ export type InternalControllerEndpoint = {
|
||||
getAlbumInfo?: (args: ReplaceApiClientProps<AlbumDetailArgs>) => Promise<AlbumInfo>;
|
||||
getAlbumList: (args: ReplaceApiClientProps<AlbumListArgs>) => Promise<AlbumListResponse>;
|
||||
getAlbumListCount: (args: ReplaceApiClientProps<AlbumListCountArgs>) => Promise<number>;
|
||||
getAlbumRadio: (args: ReplaceApiClientProps<AlbumRadioArgs>) => Promise<Song[]>;
|
||||
// getArtistInfo?: (args: any) => void;
|
||||
getArtistList: (args: ReplaceApiClientProps<ArtistListArgs>) => Promise<ArtistListResponse>;
|
||||
getArtistListCount: (args: ReplaceApiClientProps<ArtistListCountArgs>) => Promise<number>;
|
||||
|
||||
Reference in New Issue
Block a user