Versions in this module Expand all Collapse all v0 v0.2.0 Dec 28, 2022 Changes in this version + const AlbumAPI + const ArtistAPI + const Base62 + const DJAPI + const DefaultRSAPublicKeyExponent + const DefaultRSAPublicKeyModulus + const DjradioAPI + const IV + const PlaylistAPI + const PresetKey + const SongAPI + const SongUrlAPI + const WeAPI + func Encrypt(origData []byte) (params, encSecKey string, err error) + func ExtractMP3List(songs []Song, savePath string) ([]*resource.MP3, error) + func Parse(url string) (req common.MusicRequest, 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) Extract() ([]*resource.MP3, error) + func (s *AlbumRequest) Do() error + 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 (r *ArtistRequest) Do() error + func (r *ArtistRequest) Extract() ([]*resource.MP3, error) + type ArtistResponse struct + Artist Artist + Code int + HotSongs []Song + Msg string + type DJParams struct + ID int + type DJRequest struct + Params DJParams + Response DJResponse + func NewDJRequest(id int) *DJRequest + func (r *DJRequest) Extract() ([]*resource.MP3, error) + func (s *DJRequest) Do() error + type DJResponse struct + Code int + Msg string + Program *DjradioProgram + type DjradioParams struct + Limit int + Offset int + RadioId int + type DjradioProgram struct + BlurCoverURL string + Dj struct{ ... } + ID int64 + MainSong struct{ ... } + Name string + type DjradioRequest struct + Id int + Params DjradioParams + Response DjradioResponse + func NewDjradioRequest(id int) *DjradioRequest + func (r *DjradioRequest) Extract() ([]*resource.MP3, error) + func (s *DjradioRequest) Do() error + type DjradioResponse struct + Code int + Msg string + Programs []*DjradioProgram + 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) Extract() ([]*resource.MP3, error) + func (s *PlaylistRequest) Do() error + type PlaylistResponse struct + Code int + Msg string + Playlist Playlist + type Song struct + Album Album + Artist []Artist + Id int + Name string + Position int + PublishTime int64 + func (s *Song) Extract() *resource.MP3 + 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) Extract() ([]*resource.MP3, error) + 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