Documentation ¶
Overview ¶
Package xiami 包含虾米API相关结构体
Index ¶
- func ReleaseAlibabaXiamiApiRadioMyselfGetAPIRequest(v *AlibabaXiamiApiRadioMyselfGetAPIRequest)
- func ReleaseAlibabaXiamiApiRadioMyselfGetAPIResponse(v *AlibabaXiamiApiRadioMyselfGetAPIResponse)
- func ReleaseSong(v *Song)
- 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) Reset()
- func (r *AlibabaXiamiApiRadioMyselfGetAPIRequest) SetLimit(_limit int64) error
- type AlibabaXiamiApiRadioMyselfGetAPIResponse
- type AlibabaXiamiApiRadioMyselfGetAPIResponseModel
- type Song
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReleaseAlibabaXiamiApiRadioMyselfGetAPIRequest ¶ added in v1.3.4
func ReleaseAlibabaXiamiApiRadioMyselfGetAPIRequest(v *AlibabaXiamiApiRadioMyselfGetAPIRequest)
ReleaseAlibabaXiamiApiRadioMyselfGetAPIRequest 将 AlibabaXiamiApiRadioMyselfGetAPIRequest 放入 sync.Pool
func ReleaseAlibabaXiamiApiRadioMyselfGetAPIResponse ¶ added in v1.3.4
func ReleaseAlibabaXiamiApiRadioMyselfGetAPIResponse(v *AlibabaXiamiApiRadioMyselfGetAPIResponse)
ReleaseAlibabaXiamiApiRadioMyselfGetAPIResponse 将 AlibabaXiamiApiRadioMyselfGetAPIResponse 保存到 sync.Pool
Types ¶
type AlibabaXiamiApiRadioMyselfGetAPIRequest ¶
type AlibabaXiamiApiRadioMyselfGetAPIRequest struct { model.Params // contains filtered or unexported fields }
AlibabaXiamiApiRadioMyselfGetAPIRequest 我的电台 API请求 alibaba.xiami.api.radio.myself.get
我的电台
func GetAlibabaXiamiApiRadioMyselfGetAPIRequest ¶ added in v1.3.4
func GetAlibabaXiamiApiRadioMyselfGetAPIRequest() *AlibabaXiamiApiRadioMyselfGetAPIRequest
GetAlibabaXiamiApiRadioMyselfGetRequest 从 sync.Pool 获取 AlibabaXiamiApiRadioMyselfGetAPIRequest
func NewAlibabaXiamiApiRadioMyselfGetRequest ¶
func NewAlibabaXiamiApiRadioMyselfGetRequest() *AlibabaXiamiApiRadioMyselfGetAPIRequest
NewAlibabaXiamiApiRadioMyselfGetRequest 初始化AlibabaXiamiApiRadioMyselfGetAPIRequest对象
func (AlibabaXiamiApiRadioMyselfGetAPIRequest) GetApiMethodName ¶
func (r AlibabaXiamiApiRadioMyselfGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlibabaXiamiApiRadioMyselfGetAPIRequest) GetApiParams ¶
func (r AlibabaXiamiApiRadioMyselfGetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlibabaXiamiApiRadioMyselfGetAPIRequest) GetLimit ¶
func (r AlibabaXiamiApiRadioMyselfGetAPIRequest) GetLimit() int64
GetLimit Limit Getter
func (AlibabaXiamiApiRadioMyselfGetAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlibabaXiamiApiRadioMyselfGetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AlibabaXiamiApiRadioMyselfGetAPIRequest) Reset ¶ added in v1.3.4
func (r *AlibabaXiamiApiRadioMyselfGetAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*AlibabaXiamiApiRadioMyselfGetAPIRequest) SetLimit ¶
func (r *AlibabaXiamiApiRadioMyselfGetAPIRequest) SetLimit(_limit int64) error
SetLimit is Limit Setter 歌曲数量
type AlibabaXiamiApiRadioMyselfGetAPIResponse ¶
type AlibabaXiamiApiRadioMyselfGetAPIResponse struct { model.CommonResponse AlibabaXiamiApiRadioMyselfGetAPIResponseModel }
AlibabaXiamiApiRadioMyselfGetAPIResponse 我的电台 API返回值 alibaba.xiami.api.radio.myself.get
我的电台
func GetAlibabaXiamiApiRadioMyselfGetAPIResponse ¶ added in v1.3.4
func GetAlibabaXiamiApiRadioMyselfGetAPIResponse() *AlibabaXiamiApiRadioMyselfGetAPIResponse
GetAlibabaXiamiApiRadioMyselfGetAPIResponse 从 sync.Pool 获取 AlibabaXiamiApiRadioMyselfGetAPIResponse
func (*AlibabaXiamiApiRadioMyselfGetAPIResponse) Reset ¶ added in v1.3.4
func (m *AlibabaXiamiApiRadioMyselfGetAPIResponse) Reset()
Reset 清空结构体
type AlibabaXiamiApiRadioMyselfGetAPIResponseModel ¶
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 我的电台 成功返回结果
func (*AlibabaXiamiApiRadioMyselfGetAPIResponseModel) Reset ¶ added in v1.3.4
func (m *AlibabaXiamiApiRadioMyselfGetAPIResponseModel) Reset()
Reset 清空结构体
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 结构体