Documentation ¶
Index ¶
- Constants
- type Login
- func (l *Login) DisLike(ID int) bool
- func (l *Login) GetAllPlaySheet()
- func (l *Login) GetFMSong() []Song
- func (l *Login) GetFavSong() []Song
- func (l *Login) GetRecommend() []Song
- func (l *Login) GetSongDetails(ids ...int) []Song
- func (l *Login) GetStatusCode(data []byte) int
- func (l *Login) GetUID() int
- func (l *Login) GetURLByID(ID int) string
- func (l *Login) Like(ID int) bool
- func (l *Login) LoginEmail(email, password string) []byte
- func (l *Login) Logout() []byte
- func (l *Login) ParseLoginData()
- type PlaySheet
- type Profile
- type Song
- type User
Constants ¶
View Source
const ( // APIServer API服务器地址 APIServer = "http://localhost:3000/" // APILoginMail 邮箱登录地址 APILoginMail = APIServer + "login?email=%s&password=%s" // APILoginStatus 登录状态地址 APILoginStatus = APIServer + "login/status" // APILogout 登出 APILogout = APIServer + "logout" // APIUserDetail 用户详情 APIUserDetail = APIServer + "user/detail?uid=%d" // APIHeartbeatMode 心动模式 APIHeartbeatMode = APIServer + "playmode/intelligence/list?id=%d&pid=%d" // songID and playsheerid // APIMusicURL 获取音乐的地址 APIMusicURL = APIServer + "song/url?id=" // More can be added // APIMusicURLSingle 获取单个音乐地址 APIMusicURLSingle = APIServer + "song/url?id=%d" // APISignIn 签到API APISignIn = APIServer + "daily_signin?type=%d" // APIFM 电台API APIFM = APIServer + "personal_fm" // APIDailyRecommendSong 每日推荐API APIDailyRecommendSong = APIServer + "recommend/songs" // APILoveList 我喜欢的音乐API APILoveList = APIServer + "likelist?uid=%d" // APIUserPlaySheetList 用户歌单API APIUserPlaySheetList = APIServer + "user/playlist?uid=%d" // APIPlaySheetDetail 歌单详情API APIPlaySheetDetail = APIServer + "playlist/detail?id=%d" // APISongDetail 歌曲详情API APISongDetail = APIServer + "song/detail?ids=" // APILyric 歌词API APILyric = APIServer + "lyric?id=%d" // APILike 喜欢此音乐API APILike = APIServer + "like?id=%d" )
API 地址列表
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Login ¶
type Login struct { APIAddr string Client *network.Client LoginData []byte UserData User PlaySheets []PlaySheet }
Login 网易云登录客户端
func (*Login) GetSongDetails ¶
GetSongDetails 获取id序列的详细信息,包含URL
func (*Login) LoginEmail ¶
LoginEmail 使用邮箱登录
Click to show internal directories.
Click to hide internal directories.