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, page int, pageSize int) ([]*Song, error) GetRank(ctx context.Context) ([]*Rank, error) GetRankList(ctx context.Context, bangId string, page int, pageSize int) ([]*Song, error) GetSong(ctx context.Context, songId string) (*Song, error) GetArtist(ctx context.Context, artistId string, page int, pageSize int) (*Collection, error) GetAlbum(ctx context.Context, albumId string) (*Collection, error) GetPlayLists(ctx context.Context, page int, pageSize int) ([]*Playlist, error) GetPlaylist(ctx context.Context, playlistId string) (*Collection, error) SendRequest(req *ghttp.Request) (*ghttp.Response, error) }
type Rank ¶
type Song ¶
type Song struct { Id string `json:"id"` Name string `json:"name"` Artist string `json:"artist"` ArtistId string `json:"artist_id,omitempty"` Album string `json:"album"` AlbumId string `json:"album_id,omitempty"` AlbumPic string `json:"album_pic,omitempty"` PicURL string `json:"pic_url,omitempty"` Lyric string `json:"lyric,omitempty"` ListenURL string `json:"listen_url,omitempty"` Duration int `json:"duration"` }
Click to show internal directories.
Click to hide internal directories.