Documentation ¶
Index ¶
- func NcmluTask(phone, passwd string, code int, onlySign, unstable bool)
- func NewClient() *http.Client
- type FeedbackJSON
- type Json
- type Log
- type MusicListJSON
- type NCMAccount
- func (ac *NCMAccount) Feedback(client *http.Client)
- func (ac *NCMAccount) Login(client *http.Client)
- func (ac *NCMAccount) Musics(client *http.Client, listID int)
- func (ac *NCMAccount) PersonalizedList(client *http.Client)
- func (ac *NCMAccount) RecommendList(client *http.Client)
- func (ac *NCMAccount) Sign(client *http.Client, tp int)
- func (ac *NCMAccount) TopPlaylist(client *http.Client)
- func (ac *NCMAccount) UserLevel(client *http.Client)
- type PersonalizedJSON
- type RecommendJSON
- type ResLevelJSON
- type ResponseJSON
- type TopListJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FeedbackJSON ¶
type FeedbackJSON struct {
Code int `json:"code"`
}
type MusicListJSON ¶
type MusicListJSON struct { PlayList struct { TrackIDs []struct { ID int `json:"id"` } `json:"trackIds"` } `json:"playlist"` }
type NCMAccount ¶
type NCMAccount struct { Phone string `json:"phone"` // 用户手机号 Password string `json:"password"` // 用户密码 CountryCode int `json:"countrycode"` // 用户手机号国家码 Csrf string // CSRF Token Nickname string // 昵称 Uid int // 用户 UID Level int // 用户等级 RemainPlayCount int // 剩余播放数量 RemainLoginCount int // 剩余登录天数 PlayList []int // 歌单列表 MusicList []int // 歌曲列表 }
func (*NCMAccount) Feedback ¶
func (ac *NCMAccount) Feedback(client *http.Client)
func (*NCMAccount) Musics ¶
func (ac *NCMAccount) Musics(client *http.Client, listID int)
Musics 获取某一歌单中的所有歌曲
func (*NCMAccount) PersonalizedList ¶
func (ac *NCMAccount) PersonalizedList(client *http.Client)
PersonalizedList 获取个性化推荐歌单列表
func (*NCMAccount) RecommendList ¶
func (ac *NCMAccount) RecommendList(client *http.Client)
RecommendList 获取每日推荐歌单列表
func (*NCMAccount) TopPlaylist ¶
func (ac *NCMAccount) TopPlaylist(client *http.Client)
TopPlaylist 获取精选碟歌单
type PersonalizedJSON ¶
type RecommendJSON ¶
type ResLevelJSON ¶
type ResponseJSON ¶
type TopListJSON ¶
type TopListJSON struct { Playlists []struct { ID int `json:"id"` } `json:"playlists"` }
Click to show internal directories.
Click to hide internal directories.