Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct { Id string `json:"id"` Name string `json:"name"` PicURL string `json:"pic_url"` Songs []*Song `json:"songs"` }
func (*Collection) String ¶
func (c *Collection) String() string
type Provider ¶
type Provider interface { SearchSongs(ctx context.Context, keyword string) ([]*Song, error) GetSong(ctx context.Context, songId string) (*Song, error) GetArtist(ctx context.Context, artistId string) (*Collection, error) GetAlbum(ctx context.Context, albumId string) (*Collection, error) GetPlaylist(ctx context.Context, playlistId string) (*Collection, error) SendRequest(req *ghttp.Request) (*ghttp.Response, error) }
Click to show internal directories.
Click to hide internal directories.