xiamicontent

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

曲库开放平台歌曲API model

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlbumDto

type AlbumDto struct {
	AlbumLogo string `json:"album_logo,omitempty" xml:"album_logo,omitempty"`
	// 专辑名
	AlbumName string `json:"album_name,omitempty" xml:"album_name,omitempty"`
	// 副标题
	SubName string `json:"sub_name,omitempty" xml:"sub_name,omitempty"`
	// 专辑状态 1-已发布 0-未发布
	AlbumStatus string `json:"album_status,omitempty" xml:"album_status,omitempty"`
	// 专辑发行时间
	GmtPublish string `json:"gmt_publish,omitempty" xml:"gmt_publish,omitempty"`
	// 专辑id
	AlbumId int64 `json:"album_id,omitempty" xml:"album_id,omitempty"`
	// 语种
	Language string `json:"language,omitempty" xml:"language,omitempty"`
}

AlbumDto

type ArtistDto

type ArtistDto struct {
	// 地域
	Area string `json:"area,omitempty" xml:"area,omitempty"`
	// 性别
	Gender string `json:"gender,omitempty" xml:"gender,omitempty"`
	// 别名
	Alias string `json:"alias,omitempty" xml:"alias,omitempty"`
	// 艺人名
	ArtistName string `json:"artist_name,omitempty" xml:"artist_name,omitempty"`
	ArtistLogo string `json:"artist_logo,omitempty" xml:"artist_logo,omitempty"`
	// 艺人id
	ArtistId int64 `json:"artist_id,omitempty" xml:"artist_id,omitempty"`
}

ArtistDto

type AudioDto

type AudioDto struct {
	// 音频ID
	AudioId int64 `json:"audio_id,omitempty" xml:"audio_id,omitempty"`
	// 音频时长,同一歌曲时长一致(单位:毫秒)
	Duration int64 `json:"duration,omitempty" xml:"duration,omitempty"`
	// 音频地址 带有标准的CDN签名
	ListenUrl string `json:"listen_url,omitempty" xml:"listen_url,omitempty"`
	// 文件大小(单位: 字节)
	FileSize int64 `json:"file_size,omitempty" xml:"file_size,omitempty"`
	// 音频格式:mp3|m4a|wav
	Format string `json:"format,omitempty" xml:"format,omitempty"`
	// 码率: 32|64|128|192|320|>320的整数值
	Rate int64 `json:"rate,omitempty" xml:"rate,omitempty"`
	// 品质:1(无损)|2(320k)|3(192k)|4(128k)|5(32k)|7(64k)|15(MQA)
	Quality int64 `json:"quality,omitempty" xml:"quality,omitempty"`
	// 采样率
	SampleRate int64 `json:"sample_rate,omitempty" xml:"sample_rate,omitempty"`
	// 位信息,音频压缩过程产生的信息,可忽略
	Bits int64 `json:"bits,omitempty" xml:"bits,omitempty"`
	// 过期时间(unix timestamp)
	Expire int64 `json:"expire,omitempty" xml:"expire,omitempty"`
}

AudioDto

type CollectDto

type CollectDto struct {
	// 歌单id
	CollectId int64 `json:"collect_id,omitempty" xml:"collect_id,omitempty"`
	// 歌单名
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 主题
	Theme string `json:"theme,omitempty" xml:"theme,omitempty"`
	// 业务方id
	PartnerId int64 `json:"partner_id,omitempty" xml:"partner_id,omitempty"`
	// 场景
	Scene string `json:"scene,omitempty" xml:"scene,omitempty"`
}

CollectDto

type LyricDto

type LyricDto struct {
	// 歌词类型 TXT LRC TRC TLRC TTRC
	LyricType string `json:"lyric_type,omitempty" xml:"lyric_type,omitempty"`
	// 歌词id
	LyricId int64 `json:"lyric_id,omitempty" xml:"lyric_id,omitempty"`
	// 歌词地址
	LyricUrl string `json:"lyric_url,omitempty" xml:"lyric_url,omitempty"`
}

LyricDto

type LyricsDto

type LyricsDto struct {
	// 歌词文件地址
	LyricUrl string `json:"lyric_url,omitempty" xml:"lyric_url,omitempty"`
	// 歌词类型:TXT(文本歌词) | LRC(逐行动态歌词) | TRC(逐字动态歌词) | TLRC(翻译LRC歌词) | OSS_TRANSLATE(翻译TRC歌词)
	LyricType string `json:"lyric_type,omitempty" xml:"lyric_type,omitempty"`
	// 所属歌曲ID
	SongId int64 `json:"song_id,omitempty" xml:"song_id,omitempty"`
	// 歌词ID
	LyricId int64 `json:"lyric_id,omitempty" xml:"lyric_id,omitempty"`
}

LyricsDto

type MvDto

type MvDto struct {
	// 副标题
	SubTitle string `json:"sub_title,omitempty" xml:"sub_title,omitempty"`
	// 标题
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// mvid
	MvId string `json:"mv_id,omitempty" xml:"mv_id,omitempty"`
	// 播放地址
	PlayUrl string `json:"play_url,omitempty" xml:"play_url,omitempty"`
	// 时长(秒)
	Duration int64 `json:"duration,omitempty" xml:"duration,omitempty"`
	// mv封面地址
	MvCover string `json:"mv_cover,omitempty" xml:"mv_cover,omitempty"`
	// mv介绍
	Description string `json:"description,omitempty" xml:"description,omitempty"`
}

MvDto

type Page

type Page struct {
	// 歌曲列表
	SongList []SongInfoDto `json:"song_list,omitempty" xml:"song_list>song_info_dto,omitempty"`
	// 分页信息
	Paging *PagingVo `json:"paging,omitempty" xml:"paging,omitempty"`
}

Page

type PagingVo

type PagingVo struct {
	// 页码
	Page int64 `json:"page,omitempty" xml:"page,omitempty"`
	// 每页展示数
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 总页数
	Pages int64 `json:"pages,omitempty" xml:"pages,omitempty"`
	// 总歌曲数
	Count int64 `json:"count,omitempty" xml:"count,omitempty"`
}

PagingVo

type ResultCode

type ResultCode struct {
	// result message
	Msg string `json:"msg,omitempty" xml:"msg,omitempty"`
	// result code
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

ResultCode

type SearchTermsDto

type SearchTermsDto struct {
	// 搜索的value。songName:歌曲名称;singerName:演唱者名称;lyric:歌词文本(只匹配前50字符); copyrightStatus:版权状态 0下架/1上架;publishStatus:发布状态 0未发布/1发布; keyword:关键字搜索(与songName/singerName互斥); lyric:歌词搜索,限制字符数50
	Value string `json:"value,omitempty" xml:"value,omitempty"`
	// 搜索key:songName/singerName/lyric/copyrightStatus/publishStatus/keyword/lyric
	Key string `json:"key,omitempty" xml:"key,omitempty"`
}

SearchTermsDto

type SongAudiosDto

type SongAudiosDto struct {
	// 歌曲ID
	SongId int64 `json:"song_id,omitempty" xml:"song_id,omitempty"`
	// 音频信息
	Audios []AudioDto `json:"audios,omitempty" xml:"audios>audio_dto,omitempty"`
	// 副歌片段结束时间(单位:毫秒)
	RefrainEndTime int64 `json:"refrain_end_time,omitempty" xml:"refrain_end_time,omitempty"`
	// 副歌片段开始时间(单位:毫秒)
	RefrainStartTime int64 `json:"refrain_start_time,omitempty" xml:"refrain_start_time,omitempty"`
}

SongAudiosDto

type SongCatTagDto

type SongCatTagDto struct {
	// tag间的关系查询 1 and 2:or
	Relation int64 `json:"relation,omitempty" xml:"relation,omitempty"`
	// tag code列表
	TagCodes []string `json:"tag_codes,omitempty" xml:"tag_codes>string,omitempty"`
}

SongCatTagDto

type SongCatsSearchDto

type SongCatsSearchDto struct {
	// 标签类目间的关系查询 1 and 2:or
	Relation int64 `json:"relation,omitempty" xml:"relation,omitempty"`
	// 标签组列表
	CatTagCodes []SongCatTagDto `json:"cat_tag_codes,omitempty" xml:"cat_tag_codes>song_cat_tag_dto,omitempty"`
}

SongCatsSearchDto

type SongInfoDto

type SongInfoDto struct {
	// 演唱者列表
	Singers []ArtistDto `json:"singers,omitempty" xml:"singers>artist_dto,omitempty"`
	// 歌曲名
	SongName string `json:"song_name,omitempty" xml:"song_name,omitempty"`
	// 作曲人列表
	Composers []ArtistDto `json:"composers,omitempty" xml:"composers>artist_dto,omitempty"`
	// 专辑艺人
	Artists []ArtistDto `json:"artists,omitempty" xml:"artists>artist_dto,omitempty"`
	// 专辑信息
	Album *AlbumDto `json:"album,omitempty" xml:"album,omitempty"`
	// 作词人列表
	Songwriters []ArtistDto `json:"songwriters,omitempty" xml:"songwriters>artist_dto,omitempty"`
	// 制作人列表
	Producers []ArtistDto `json:"producers,omitempty" xml:"producers>artist_dto,omitempty"`
	// 标签列表
	Tags []TagLink `json:"tags,omitempty" xml:"tags>tag_link,omitempty"`
	// 歌曲时长(单位毫秒),没有对应的音频文件时为0
	Duration int64 `json:"duration,omitempty" xml:"duration,omitempty"`
	// 版权状态
	CopyrightStatus int64 `json:"copyright_status,omitempty" xml:"copyright_status,omitempty"`
	// 编曲人列表
	Arrangements []ArtistDto `json:"arrangements,omitempty" xml:"arrangements>artist_dto,omitempty"`
	// 歌词列表
	Lyrics []LyricDto `json:"lyrics,omitempty" xml:"lyrics>lyric_dto,omitempty"`
	// 歌曲副标题
	SongSubName string `json:"song_sub_name,omitempty" xml:"song_sub_name,omitempty"`
	// 歌曲id
	SongId int64 `json:"song_id,omitempty" xml:"song_id,omitempty"`
	// 歌曲发布状态, 1-已发布, 0-未发布
	PublishStatus int64 `json:"publish_status,omitempty" xml:"publish_status,omitempty"`
	// 波形图文件
	WaveformUrl string `json:"waveform_url,omitempty" xml:"waveform_url,omitempty"`
	// 副歌结束时间戳
	HotPartEndTime int64 `json:"hot_part_end_time,omitempty" xml:"hot_part_end_time,omitempty"`
	// 副歌开始时间戳
	HotPartStartTime int64 `json:"hot_part_start_time,omitempty" xml:"hot_part_start_time,omitempty"`
}

SongInfoDto

type TagCatLink struct {
	// tag根类目
	Parent *TagCatLink `json:"parent,omitempty" xml:"parent,omitempty"`
	// 直属类目code
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 直属类目中文名
	NameCn string `json:"name_cn,omitempty" xml:"name_cn,omitempty"`
	// 直属类目描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 直属类目根类目,如果为0则该类目为根类目
	Pid int64 `json:"pid,omitempty" xml:"pid,omitempty"`
	// 直属类目英文名
	NameEn string `json:"name_en,omitempty" xml:"name_en,omitempty"`
	// 直属类目id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

TagCatLink

type TagLink struct {
	// tag直属类目
	Parent *TagCatLink `json:"parent,omitempty" xml:"parent,omitempty"`
	// tag code(唯一标识一个tag)
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// tag名称
	NameCn string `json:"name_cn,omitempty" xml:"name_cn,omitempty"`
	// tag描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 父类目id
	Pid int64 `json:"pid,omitempty" xml:"pid,omitempty"`
	// tag英文名
	NameEn string `json:"name_en,omitempty" xml:"name_en,omitempty"`
	// tag id(唯一标识一个tag)
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

TagLink

type XiamiContentMvDetailGetAPIRequest added in v1.2.0

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

获取mv详情 API请求 xiami.content.mv.detail.get

获取mv详情

func NewXiamiContentMvDetailGetRequest

func NewXiamiContentMvDetailGetRequest() *XiamiContentMvDetailGetAPIRequest

初始化XiamiContentMvDetailGetAPIRequest对象

func (XiamiContentMvDetailGetAPIRequest) GetApiMethodName added in v1.2.0

func (r XiamiContentMvDetailGetAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (XiamiContentMvDetailGetAPIRequest) GetApiParams added in v1.2.0

func (r XiamiContentMvDetailGetAPIRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (XiamiContentMvDetailGetAPIRequest) GetMvIds added in v1.2.0

MvIds Getter

func (*XiamiContentMvDetailGetAPIRequest) SetMvIds added in v1.2.0

func (r *XiamiContentMvDetailGetAPIRequest) SetMvIds(_mvIds []int64) error

MvIds Setter mvId

type XiamiContentMvDetailGetAPIResponse

type XiamiContentMvDetailGetAPIResponse struct {
	model.CommonResponse
	XiamiContentMvDetailGetAPIResponseModel
}

获取mv详情 API返回值 xiami.content.mv.detail.get

获取mv详情

type XiamiContentMvDetailGetAPIResponseModel added in v1.2.0

type XiamiContentMvDetailGetAPIResponseModel struct {
	XMLName xml.Name `xml:"xiami_content_mv_detail_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// mv列表
	MvDtos []MvDto `json:"mv_dtos,omitempty" xml:"mv_dtos>mv_dto,omitempty"`
	// 请求结果
	ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"`
}

获取mv详情 成功返回结果

type XiamiContentSongsAudioGetAPIRequest added in v1.2.0

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

获取歌曲音频 API请求 xiami.content.songs.audio.get

获取歌曲音频

func NewXiamiContentSongsAudioGetRequest

func NewXiamiContentSongsAudioGetRequest() *XiamiContentSongsAudioGetAPIRequest

初始化XiamiContentSongsAudioGetAPIRequest对象

func (XiamiContentSongsAudioGetAPIRequest) GetApiMethodName added in v1.2.0

func (r XiamiContentSongsAudioGetAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (XiamiContentSongsAudioGetAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (XiamiContentSongsAudioGetAPIRequest) GetSongIds added in v1.2.0

func (r XiamiContentSongsAudioGetAPIRequest) GetSongIds() []int64

SongIds Getter

func (*XiamiContentSongsAudioGetAPIRequest) SetSongIds added in v1.2.0

func (r *XiamiContentSongsAudioGetAPIRequest) SetSongIds(_songIds []int64) error

SongIds Setter 歌曲ID

type XiamiContentSongsAudioGetAPIResponse

type XiamiContentSongsAudioGetAPIResponse struct {
	model.CommonResponse
	XiamiContentSongsAudioGetAPIResponseModel
}

获取歌曲音频 API返回值 xiami.content.songs.audio.get

获取歌曲音频

type XiamiContentSongsAudioGetAPIResponseModel added in v1.2.0

type XiamiContentSongsAudioGetAPIResponseModel struct {
	XMLName xml.Name `xml:"xiami_content_songs_audio_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 请求结果信息
	ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 音频信息
	Audios []SongAudiosDto `json:"audios,omitempty" xml:"audios>song_audios_dto,omitempty"`
}

获取歌曲音频 成功返回结果

type XiamiContentSongsAudioGetrefrainAPIRequest added in v1.2.0

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

获取副歌信息 API请求 xiami.content.songs.audio.getrefrain

获取歌曲音频副歌

func NewXiamiContentSongsAudioGetrefrainRequest

func NewXiamiContentSongsAudioGetrefrainRequest() *XiamiContentSongsAudioGetrefrainAPIRequest

初始化XiamiContentSongsAudioGetrefrainAPIRequest对象

func (XiamiContentSongsAudioGetrefrainAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (XiamiContentSongsAudioGetrefrainAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (XiamiContentSongsAudioGetrefrainAPIRequest) GetSongIds added in v1.2.0

SongIds Getter

func (*XiamiContentSongsAudioGetrefrainAPIRequest) SetSongIds added in v1.2.0

func (r *XiamiContentSongsAudioGetrefrainAPIRequest) SetSongIds(_songIds []int64) error

SongIds Setter 歌曲ID

type XiamiContentSongsAudioGetrefrainAPIResponse

type XiamiContentSongsAudioGetrefrainAPIResponse struct {
	model.CommonResponse
	XiamiContentSongsAudioGetrefrainAPIResponseModel
}

获取副歌信息 API返回值 xiami.content.songs.audio.getrefrain

获取歌曲音频副歌

type XiamiContentSongsAudioGetrefrainAPIResponseModel added in v1.2.0

type XiamiContentSongsAudioGetrefrainAPIResponseModel struct {
	XMLName xml.Name `xml:"xiami_content_songs_audio_getrefrain_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 请求结果信息
	ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 音频信息
	Audios []SongAudiosDto `json:"audios,omitempty" xml:"audios>song_audios_dto,omitempty"`
}

获取副歌信息 成功返回结果

type XiamiContentSongsCollectGetAPIRequest added in v1.2.0

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

获取歌单详情接口 API请求 xiami.content.songs.collect.get

根据歌单id,获取歌单详情

func NewXiamiContentSongsCollectGetRequest

func NewXiamiContentSongsCollectGetRequest() *XiamiContentSongsCollectGetAPIRequest

初始化XiamiContentSongsCollectGetAPIRequest对象

func (XiamiContentSongsCollectGetAPIRequest) GetApiMethodName added in v1.2.0

func (r XiamiContentSongsCollectGetAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (XiamiContentSongsCollectGetAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (XiamiContentSongsCollectGetAPIRequest) GetCollectId added in v1.2.0

CollectId Getter

func (XiamiContentSongsCollectGetAPIRequest) GetPage added in v1.2.0

Page Getter

func (*XiamiContentSongsCollectGetAPIRequest) SetCollectId added in v1.2.0

func (r *XiamiContentSongsCollectGetAPIRequest) SetCollectId(_collectId int64) error

CollectId Setter 歌单id

func (*XiamiContentSongsCollectGetAPIRequest) SetPage added in v1.2.0

Page Setter 分页信息

type XiamiContentSongsCollectGetAPIResponse

type XiamiContentSongsCollectGetAPIResponse struct {
	model.CommonResponse
	XiamiContentSongsCollectGetAPIResponseModel
}

获取歌单详情接口 API返回值 xiami.content.songs.collect.get

根据歌单id,获取歌单详情

type XiamiContentSongsCollectGetAPIResponseModel added in v1.2.0

type XiamiContentSongsCollectGetAPIResponseModel struct {
	XMLName xml.Name `xml:"xiami_content_songs_collect_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回的歌曲信息
	Songs *Page `json:"songs,omitempty" xml:"songs,omitempty"`
	// 系统自动生成
	ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 歌单详情
	Collect *CollectDto `json:"collect,omitempty" xml:"collect,omitempty"`
}

获取歌单详情接口 成功返回结果

type XiamiContentSongsInfoGetAPIRequest added in v1.2.0

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

获取歌曲信息 API请求 xiami.content.songs.info.get

(批量)获取歌曲信息

func NewXiamiContentSongsInfoGetRequest

func NewXiamiContentSongsInfoGetRequest() *XiamiContentSongsInfoGetAPIRequest

初始化XiamiContentSongsInfoGetAPIRequest对象

func (XiamiContentSongsInfoGetAPIRequest) GetApiMethodName added in v1.2.0

func (r XiamiContentSongsInfoGetAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (XiamiContentSongsInfoGetAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (XiamiContentSongsInfoGetAPIRequest) GetSongIds added in v1.2.0

func (r XiamiContentSongsInfoGetAPIRequest) GetSongIds() []int64

SongIds Getter

func (*XiamiContentSongsInfoGetAPIRequest) SetSongIds added in v1.2.0

func (r *XiamiContentSongsInfoGetAPIRequest) SetSongIds(_songIds []int64) error

SongIds Setter 歌曲ID

type XiamiContentSongsInfoGetAPIResponse

type XiamiContentSongsInfoGetAPIResponse struct {
	model.CommonResponse
	XiamiContentSongsInfoGetAPIResponseModel
}

获取歌曲信息 API返回值 xiami.content.songs.info.get

(批量)获取歌曲信息

type XiamiContentSongsInfoGetAPIResponseModel added in v1.2.0

type XiamiContentSongsInfoGetAPIResponseModel struct {
	XMLName xml.Name `xml:"xiami_content_songs_info_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 系统自动生成
	ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 歌曲信息
	Songs []SongInfoDto `json:"songs,omitempty" xml:"songs>song_info_dto,omitempty"`
}

获取歌曲信息 成功返回结果

type XiamiContentSongsInfoQueryAPIRequest added in v1.2.0

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

搜索歌曲列表 API请求 xiami.content.songs.info.query

多维度查询歌曲列表

func NewXiamiContentSongsInfoQueryRequest

func NewXiamiContentSongsInfoQueryRequest() *XiamiContentSongsInfoQueryAPIRequest

初始化XiamiContentSongsInfoQueryAPIRequest对象

func (XiamiContentSongsInfoQueryAPIRequest) GetApiMethodName added in v1.2.0

func (r XiamiContentSongsInfoQueryAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (XiamiContentSongsInfoQueryAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (XiamiContentSongsInfoQueryAPIRequest) GetOrderBy added in v1.2.0

OrderBy Getter

func (XiamiContentSongsInfoQueryAPIRequest) GetPage added in v1.2.0

Page Getter

func (XiamiContentSongsInfoQueryAPIRequest) GetSearchTerms added in v1.2.0

SearchTerms Getter

func (XiamiContentSongsInfoQueryAPIRequest) GetTagOptional added in v1.2.0

TagOptional Getter

func (*XiamiContentSongsInfoQueryAPIRequest) SetOrderBy added in v1.2.0

func (r *XiamiContentSongsInfoQueryAPIRequest) SetOrderBy(_orderBy int64) error

OrderBy Setter 排序,默认按照最新排序 1最新 2本周最热 3本月最热

func (*XiamiContentSongsInfoQueryAPIRequest) SetPage added in v1.2.0

Page Setter 分页信息

func (*XiamiContentSongsInfoQueryAPIRequest) SetSearchTerms added in v1.2.0

func (r *XiamiContentSongsInfoQueryAPIRequest) SetSearchTerms(_searchTerms []SearchTermsDto) error

SearchTerms Setter 搜索条件 key支持songName/singerName/copyrightStatus/publishStatus/keyword

func (*XiamiContentSongsInfoQueryAPIRequest) SetTagOptional added in v1.2.0

func (r *XiamiContentSongsInfoQueryAPIRequest) SetTagOptional(_tagOptional *SongCatsSearchDto) error

TagOptional Setter tag搜索条件,tag尽量不要超过50个

type XiamiContentSongsInfoQueryAPIResponse

type XiamiContentSongsInfoQueryAPIResponse struct {
	model.CommonResponse
	XiamiContentSongsInfoQueryAPIResponseModel
}

搜索歌曲列表 API返回值 xiami.content.songs.info.query

多维度查询歌曲列表

type XiamiContentSongsInfoQueryAPIResponseModel added in v1.2.0

type XiamiContentSongsInfoQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"xiami_content_songs_info_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回的歌曲信息
	Songs *Page `json:"songs,omitempty" xml:"songs,omitempty"`
	// 系统自动生成
	ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"`
}

搜索歌曲列表 成功返回结果

Jump to

Keyboard shortcuts

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