Versions in this module Expand all Collapse all v1 v1.7.2 Oct 15, 2019 v1.7.1 Oct 10, 2019 v1.7.0 Oct 9, 2019 v1.6.0 Oct 8, 2019 Changes in this version + const GetAlbum + const GetArtist + const GetPlaylist + const GetSong + const GetSongURL + const Login v1.5.1 Oct 7, 2019 Changes in this version + const AlbumAPI + const ArtistAPI + const Base62 + const BatchSongsCount + const DefaultRSAPublicKeyExponent + const DefaultRSAPublicKeyModulus + const IV + const LoginAPI + const PlaylistAPI + const PresetKey + const SongAPI + const SongURLAPI + const WeAPI + func Encrypt(origData []byte) (params, encSecKey string, err error) + type Album struct + Id int + Name string + PicURL string + PublishTime int64 + type AlbumParams struct + type AlbumRequest struct + Id int + Params AlbumParams + Response AlbumResponse + func NewAlbumRequest(id int) *AlbumRequest + func (a *AlbumRequest) Do() error + func (a *AlbumRequest) Login() error + func (a *AlbumRequest) Prepare() ([]*provider.MP3, error) + func (a *AlbumRequest) RequireLogin() bool + type AlbumResponse struct + Album Album + type Artist struct + Id int + Name string + type ArtistParams struct + type ArtistRequest struct + Id int + Params ArtistParams + Response ArtistResponse + func NewArtistRequest(id int) *ArtistRequest + func (a *ArtistRequest) Do() error + func (a *ArtistRequest) Login() error + func (a *ArtistRequest) Prepare() ([]*provider.MP3, error) + func (a *ArtistRequest) RequireLogin() bool + type ArtistResponse struct + Artist Artist + Code int + HotSongs []Song + Msg string + type LoginParams struct + Password string + Phone string + RememberLogin bool + type LoginRequest struct + Params LoginParams + Response LoginResponse + func NewLoginRequest(phone, password string) *LoginRequest + func (l *LoginRequest) Do() error + type LoginResponse struct + Code int + LoginType int + Msg string + type Playlist struct + Id int + Name string + TrackIds []TrackId + type PlaylistParams struct + Id int + type PlaylistRequest struct + Params PlaylistParams + Response PlaylistResponse + func NewPlaylistRequest(id int) *PlaylistRequest + func (p *PlaylistRequest) Do() error + func (p *PlaylistRequest) Login() error + func (p *PlaylistRequest) Prepare() ([]*provider.MP3, error) + func (p *PlaylistRequest) RequireLogin() bool + type PlaylistResponse struct + Code int + Msg string + Playlist Playlist + type Song struct + Album Album + Artist []Artist + Id int + Name string + Position int + PublishTime int64 + type SongParams struct + C string + type SongRequest struct + Params SongParams + Response SongResponse + func NewSongRequest(ids ...int) *SongRequest + func (s *SongRequest) Do() error + func (s *SongRequest) Login() error + func (s *SongRequest) Prepare() ([]*provider.MP3, error) + func (s *SongRequest) RequireLogin() bool + type SongResponse struct + Code int + Msg string + Songs []Song + type SongURL struct + Code int + Id int + URL string + type SongURLParams struct + Br int + Ids string + type SongURLRequest struct + Params SongURLParams + Response SongURLResponse + func NewSongURLRequest(ids ...int) *SongURLRequest + func (s *SongURLRequest) Do() error + type SongURLResponse struct + Code int + Data []SongURL + Msg string + type TrackId struct + Id int