Documentation ¶
Overview ¶
Package xiami 包含虾米API相关结构体
Index ¶
- type AlibabaxiamiapiradiomyselfgetAPIRequest
- func (r AlibabaxiamiapiradiomyselfgetAPIRequest) GetApiMethodName() string
- func (r AlibabaxiamiapiradiomyselfgetAPIRequest) GetApiParams(params url.Values)
- func (r AlibabaxiamiapiradiomyselfgetAPIRequest) GetLimit() int64
- func (r AlibabaxiamiapiradiomyselfgetAPIRequest) GetRawParams() model.Params
- func (r *AlibabaxiamiapiradiomyselfgetAPIRequest) SetLimit(_limit int64) error
- type AlibabaxiamiapiradiomyselfgetAPIResponse
- type AlibabaxiamiapiradiomyselfgetAPIResponseModel
- type Song
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlibabaxiamiapiradiomyselfgetAPIRequest ¶ added in v1.3.1
type AlibabaxiamiapiradiomyselfgetAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaxiamiapiradiomyselfgetAPIRequest 我的电台 API请求 alibaba.xiami.api.radio.myself.get
我的电台
func NewAlibabaxiamiapiradiomyselfgetRequest ¶ added in v1.3.1
func NewAlibabaxiamiapiradiomyselfgetRequest() *AlibabaxiamiapiradiomyselfgetAPIRequest
NewAlibabaxiamiapiradiomyselfgetRequest 初始化AlibabaxiamiapiradiomyselfgetAPIRequest对象
func (AlibabaxiamiapiradiomyselfgetAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r AlibabaxiamiapiradiomyselfgetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaxiamiapiradiomyselfgetAPIRequest) GetApiParams ¶ added in v1.3.1
func (r AlibabaxiamiapiradiomyselfgetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaxiamiapiradiomyselfgetAPIRequest) GetLimit ¶ added in v1.3.1
func (r AlibabaxiamiapiradiomyselfgetAPIRequest) GetLimit() int64
GetLimit Limit Getter
func (AlibabaxiamiapiradiomyselfgetAPIRequest) GetRawParams ¶ added in v1.3.1
func (r AlibabaxiamiapiradiomyselfgetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AlibabaxiamiapiradiomyselfgetAPIRequest) SetLimit ¶ added in v1.3.1
func (r *AlibabaxiamiapiradiomyselfgetAPIRequest) SetLimit(_limit int64) error
SetLimit is Limit Setter 歌曲数量
type AlibabaxiamiapiradiomyselfgetAPIResponse ¶ added in v1.3.1
type AlibabaxiamiapiradiomyselfgetAPIResponse struct { model.CommonResponse AlibabaxiamiapiradiomyselfgetAPIResponseModel }
AlibabaxiamiapiradiomyselfgetAPIResponse 我的电台 API返回值 alibaba.xiami.api.radio.myself.get
我的电台
type AlibabaxiamiapiradiomyselfgetAPIResponseModel ¶ added in v1.3.1
type AlibabaxiamiapiradiomyselfgetAPIResponseModel struct { XMLName xml.Name `xml:"alibaba_xiami_api_radio_myself_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 歌曲列表 Data []Song `json:"data,omitempty" xml:"data>song,omitempty"` }
AlibabaxiamiapiradiomyselfgetAPIResponseModel is 我的电台 成功返回结果
type Song ¶
type Song struct { // 歌曲名称 SongName string `json:"song_name,omitempty" xml:"song_name,omitempty"` // 专辑名 AlbumName string `json:"album_name,omitempty" xml:"album_name,omitempty"` // 艺人名 ArtistName string `json:"artist_name,omitempty" xml:"artist_name,omitempty"` // 文本歌词 LyricText string `json:"lyric_text,omitempty" xml:"lyric_text,omitempty"` // 专辑LOGO Logo string `json:"logo,omitempty" xml:"logo,omitempty"` // 艺人LOGO ArtistLogo string `json:"artist_logo,omitempty" xml:"artist_logo,omitempty"` // 演唱者 Singers string `json:"singers,omitempty" xml:"singers,omitempty"` // 音频地址 ListenFile string `json:"listen_file,omitempty" xml:"listen_file,omitempty"` // 专辑名称(同album_name) Title string `json:"title,omitempty" xml:"title,omitempty"` // 歌曲名称(同song_name) Name string `json:"name,omitempty" xml:"name,omitempty"` // 专辑LOGO(同logo) AlbumLogo string `json:"album_logo,omitempty" xml:"album_logo,omitempty"` // 动态歌词(同lyric) LyricFile string `json:"lyric_file,omitempty" xml:"lyric_file,omitempty"` // 歌曲ID SongId int64 `json:"song_id,omitempty" xml:"song_id,omitempty"` // 专辑ID AlbumId int64 `json:"album_id,omitempty" xml:"album_id,omitempty"` // 艺人ID ArtistId int64 `json:"artist_id,omitempty" xml:"artist_id,omitempty"` // 推荐值 Recommends int64 `json:"recommends,omitempty" xml:"recommends,omitempty"` // 歌曲时长(S) Length int64 `json:"length,omitempty" xml:"length,omitempty"` // 播放次数 PlayCounts int64 `json:"play_counts,omitempty" xml:"play_counts,omitempty"` // 播放时长 (同length) PlaySeconds int64 `json:"play_seconds,omitempty" xml:"play_seconds,omitempty"` // 是否音乐人demo(0,不是,1,是) Demo int64 `json:"demo,omitempty" xml:"demo,omitempty"` // 播放权限(1,可以播放,0,不可播放) PlayAuthority int64 `json:"play_authority,omitempty" xml:"play_authority,omitempty"` // 是否已收藏 Favourite bool `json:"favourite,omitempty" xml:"favourite,omitempty"` }
Song 结构体
Click to show internal directories.
Click to hide internal directories.