Documentation ¶
Index ¶
- type Album
- type Artist
- type DjCategory
- type DjRadio
- type Playlist
- type Rank
- type Song
- func NewSongFromAlbumSongsJson(json []byte) (Song, error)
- func NewSongFromArtistSongsJson(json []byte) (Song, error)
- func NewSongFromCloudJson(json []byte) (Song, error)
- func NewSongFromDjRadioProgramJson(json []byte) (Song, error)
- func NewSongFromDjRankProgramJson(json []byte) (Song, error)
- func NewSongFromFmJson(json []byte) (Song, error)
- func NewSongFromIntelligenceJson(json []byte) (Song, error)
- func NewSongFromShortNameSongsJson(json []byte) (Song, error)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Album ¶
type Album struct { Id int64 `json:"id"` Name string `json:"name"` PicUrl string `json:"pic_url"` Artists []Artist `json:"artists"` }
func NewAlbumFromAlbumJson ¶
NewAlbumFromAlbumJson 从Album列表获取专辑信息
func NewAlbumFromJson ¶
NewAlbumFromJson 获取歌曲列表的专辑信息
func (Album) ArtistName ¶
type DjCategory ¶
func NewDjCategoryFromJson ¶
func NewDjCategoryFromJson(json []byte) (DjCategory, error)
NewDjCategoryFromJson 初始化分类
type DjRadio ¶
type DjRadio struct { Id int64 `json:"id"` Name string `json:"name"` PicUrl string `json:"pic_url"` Dj User `json:"dj"` }
func NewDjRadioFromJson ¶
NewDjRadioFromJson 从Json中初始化 DjRadio
type Playlist ¶
func NewPlaylistFromJson ¶
NewPlaylistFromJson 获取歌单信息
type Rank ¶
type Song ¶
type Song struct { Id int64 `json:"id"` Name string `json:"name"` Duration time.Duration `json:"duration"` Artists []Artist `json:"artists"` Album `json:"album"` }
func NewSongFromAlbumSongsJson ¶
NewSongFromAlbumSongsJson 从专辑获取数据
func NewSongFromArtistSongsJson ¶
NewSongFromArtistSongsJson 从歌手获取数据
func NewSongFromCloudJson ¶
NewSongFromCloudJson 从DjRadio节目中获取数据
func NewSongFromDjRadioProgramJson ¶
NewSongFromDjRadioProgramJson 从DjRadio节目中获取数据
func NewSongFromDjRankProgramJson ¶
NewSongFromDjRankProgramJson 从DjRadio节目中获取数据
func NewSongFromFmJson ¶
NewSongFromFmJson 从私人FM获取数据
func NewSongFromIntelligenceJson ¶
NewSongFromIntelligenceJson 心动模式获取数据
func NewSongFromShortNameSongsJson ¶
NewSongFromShortNameSongsJson 从歌单获取数据
func (Song) ArtistName ¶
type User ¶
type User struct { UserId int64 `json:"user_id"` MyLikePlaylistID int64 `json:"my_like_playlist_id"` Nickname string `json:"nickname"` AvatarUrl string `json:"avatar_url"` AccountId int64 `json:"account_id"` }
func NewUserFromJson ¶
func NewUserFromLocalJson ¶
func NewUserFromSearchResultJson ¶
NewUserFromSearchResultJson 从搜索结果json中获取用户信息
Click to show internal directories.
Click to hide internal directories.