xiami

package
v1.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package xiami 包含虾米API相关结构体

https://open.taobao.com/API.htm?docId=23270&docType=2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaXiamiApiRadioMyselfGetAPIRequest

type AlibabaXiamiApiRadioMyselfGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaXiamiApiRadioMyselfGetAPIRequest 我的电台 API请求 alibaba.xiami.api.radio.myself.get

我的电台

func NewAlibabaXiamiApiRadioMyselfGetRequest

func NewAlibabaXiamiApiRadioMyselfGetRequest() *AlibabaXiamiApiRadioMyselfGetAPIRequest

NewAlibabaXiamiApiRadioMyselfGetRequest 初始化AlibabaXiamiApiRadioMyselfGetAPIRequest对象

func (AlibabaXiamiApiRadioMyselfGetAPIRequest) GetApiMethodName

func (r AlibabaXiamiApiRadioMyselfGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaXiamiApiRadioMyselfGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaXiamiApiRadioMyselfGetAPIRequest) GetLimit

GetLimit Limit Getter

func (*AlibabaXiamiApiRadioMyselfGetAPIRequest) SetLimit

SetLimit is Limit Setter 歌曲数量

type AlibabaXiamiApiRadioMyselfGetAPIResponse

type AlibabaXiamiApiRadioMyselfGetAPIResponse struct {
	model.CommonResponse
	AlibabaXiamiApiRadioMyselfGetAPIResponseModel
}

AlibabaXiamiApiRadioMyselfGetAPIResponse 我的电台 API返回值 alibaba.xiami.api.radio.myself.get

我的电台

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 我的电台 成功返回结果

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 string `json:"logo,omitempty" xml:"logo,omitempty"`
	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"`
	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 结构体

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL