xiamicontent

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package xiamicontent 包含曲库开放平台歌曲API相关结构体

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

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"`
	// 发布时间
	GmtPublish string `json:"gmt_publish,omitempty" xml:"gmt_publish,omitempty"`
	// 语种
	Language string `json:"language,omitempty" xml:"language,omitempty"`
	// 厂牌id
	CompanyId int64 `json:"company_id,omitempty" xml:"company_id,omitempty"`
	// 专辑状态
	AlbumStatus int64 `json:"album_status,omitempty" xml:"album_status,omitempty"`
	// 专辑id
	AlbumId int64 `json:"album_id,omitempty" xml:"album_id,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 {
	// 试听文件地址
	ListenUrl string `json:"listen_url,omitempty" xml:"listen_url,omitempty"`
	// 格式
	Format string `json:"format,omitempty" xml:"format,omitempty"`
	// 音频封面
	AudioCover string `json:"audio_cover,omitempty" xml:"audio_cover,omitempty"`
	// 音频名称
	AudioName string `json:"audio_name,omitempty" xml:"audio_name,omitempty"`
	// 音频描述
	AudioDesc string `json:"audio_desc,omitempty" xml:"audio_desc,omitempty"`
	// 时长
	Duration int64 `json:"duration,omitempty" xml:"duration,omitempty"`
	// 码率
	Rate int64 `json:"rate,omitempty" xml:"rate,omitempty"`
	// 文件大小
	FileSize int64 `json:"file_size,omitempty" xml:"file_size,omitempty"`
	// 音频id
	AudioId int64 `json:"audio_id,omitempty" xml:"audio_id,omitempty"`
	// 位数
	Bits int64 `json:"bits,omitempty" xml:"bits,omitempty"`
	// 采样率
	SampleRate int64 `json:"sample_rate,omitempty" xml:"sample_rate,omitempty"`
	// 音质
	Quality int64 `json:"quality,omitempty" xml:"quality,omitempty"`
	// 超时时间
	Expire int64 `json:"expire,omitempty" xml:"expire,omitempty"`
}

AudioDto 结构体

type CollectDto

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

CollectDto 结构体

type CompanyDto added in v1.2.5

type CompanyDto struct {
	// 厂牌名称
	CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"`
	// 厂牌id
	CompanyId int64 `json:"company_id,omitempty" xml:"company_id,omitempty"`
}

CompanyDto 结构体

type LyricDto

type LyricDto struct {
	// 歌词地址
	LyricUrl string `json:"lyric_url,omitempty" xml:"lyric_url,omitempty"`
	// 歌词类型 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"`
	// 类型
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
	// 歌曲id
	SongId int64 `json:"song_id,omitempty" xml:"song_id,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 int64 `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 MusicDto added in v1.2.5

type MusicDto struct {
	// 演唱者
	Singers []ArtistDto `json:"singers,omitempty" xml:"singers>artist_dto,omitempty"`
	// 标签
	Tags []TagLink `json:"tags,omitempty" xml:"tags>tag_link,omitempty"`
	// 音频列表
	Audios []AudioDto `json:"audios,omitempty" xml:"audios>audio_dto,omitempty"`
	// 歌词
	Lyrics []LyricDto `json:"lyrics,omitempty" xml:"lyrics>lyric_dto,omitempty"`
	// 歌曲名
	SongName string `json:"song_name,omitempty" xml:"song_name,omitempty"`
	// 封面地址
	CoverUrl string `json:"cover_url,omitempty" xml:"cover_url,omitempty"`
	// 波形图地址
	WaveformUrl string `json:"waveform_url,omitempty" xml:"waveform_url,omitempty"`
	// 副标题
	SongSubName string `json:"song_sub_name,omitempty" xml:"song_sub_name,omitempty"`
	// 推荐场景id
	RecommendSceneId string `json:"recommend_scene_id,omitempty" xml:"recommend_scene_id,omitempty"`
	// 专辑
	Album *AlbumDto `json:"album,omitempty" xml:"album,omitempty"`
	// 展示状态
	ShowStatus int64 `json:"show_status,omitempty" xml:"show_status,omitempty"`
	// 时长
	Duration int64 `json:"duration,omitempty" xml:"duration,omitempty"`
	// 1-版权上架, 0-版权下架
	CopyrightStatus int64 `json:"copyright_status,omitempty" xml:"copyright_status,omitempty"`
	// 歌曲id
	SongId int64 `json:"song_id,omitempty" xml:"song_id,omitempty"`
	// 音乐类型1完整版2剪辑版
	MusicType int64 `json:"music_type,omitempty" xml:"music_type,omitempty"`
	// 发布状态
	PublishStatus int64 `json:"publish_status,omitempty" xml:"publish_status,omitempty"`
	// 是否删除
	DeletedStatus int64 `json:"deleted_status,omitempty" xml:"deleted_status,omitempty"`
}

MusicDto 结构体

type Page

type Page struct {
	// 音乐列表
	Data []MusicDto `json:"data,omitempty" xml:"data>music_dto,omitempty"`
	// 歌曲列表
	SongList []SongInfoDto `json:"song_list,omitempty" xml:"song_list>song_info_dto,omitempty"`
	// 数量
	Count int64 `json:"count,omitempty" xml:"count,omitempty"`
	// 分页信息
	PagingVo *PagingVo `json:"paging_vo,omitempty" xml:"paging_vo,omitempty"`
	// 分页信息
	Paging *PagingVo `json:"paging,omitempty" xml:"paging,omitempty"`
}

Page 结构体

type PagingVo

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

PagingVo 结构体

type ResultCode

type ResultCode struct {
	// result msg
	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 {
	// 音频信息
	Audios []AudioDto `json:"audios,omitempty" xml:"audios>audio_dto,omitempty"`
	// 歌曲ID
	SongId int64 `json:"song_id,omitempty" xml:"song_id,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"`
	// 热门片段开始时间(单位:毫秒)
	VideoPartStartTime int64 `json:"video_part_start_time,omitempty" xml:"video_part_start_time,omitempty"`
	// 热门片段结束时间(单位:毫秒)
	VideoPartEndTime int64 `json:"video_part_end_time,omitempty" xml:"video_part_end_time,omitempty"`
}

SongAudiosDto 结构体

type SongCatTagDto

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

SongCatTagDto 结构体

type SongCatsSearchDto

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

SongCatsSearchDto 结构体

type SongInfoDto

type SongInfoDto struct {
	// 演唱者列表
	Singers []ArtistDto `json:"singers,omitempty" xml:"singers>artist_dto,omitempty"`
	// 作曲人列表
	Composers []ArtistDto `json:"composers,omitempty" xml:"composers>artist_dto,omitempty"`
	// 专辑艺人
	Artists []ArtistDto `json:"artists,omitempty" xml:"artists>artist_dto,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"`
	// 编曲人列表
	Arrangements []ArtistDto `json:"arrangements,omitempty" xml:"arrangements>artist_dto,omitempty"`
	// 歌词列表
	Lyrics []LyricDto `json:"lyrics,omitempty" xml:"lyrics>lyric_dto,omitempty"`
	// 歌曲名
	SongName string `json:"song_name,omitempty" xml:"song_name,omitempty"`
	// 歌曲副标题
	SongSubName string `json:"song_sub_name,omitempty" xml:"song_sub_name,omitempty"`
	// 波形图文件
	WaveformUrl string `json:"waveform_url,omitempty" xml:"waveform_url,omitempty"`
	// 专辑信息
	Album *AlbumDto `json:"album,omitempty" xml:"album,omitempty"`
	// 歌曲时长(单位毫秒),没有对应的音频文件时为0
	Duration int64 `json:"duration,omitempty" xml:"duration,omitempty"`
	// 版权状态
	CopyrightStatus int64 `json:"copyright_status,omitempty" xml:"copyright_status,omitempty"`
	// 歌曲id
	SongId int64 `json:"song_id,omitempty" xml:"song_id,omitempty"`
	// 歌曲发布状态, 1-已发布, 0-未发布
	PublishStatus int64 `json:"publish_status,omitempty" xml:"publish_status,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 {
	// 直属类目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"`
	// 直属类目英文名
	NameEn string `json:"name_en,omitempty" xml:"name_en,omitempty"`
	// tag根类目
	Parent *TagCatLink `json:"parent,omitempty" xml:"parent,omitempty"`
	// 直属类目根类目,如果为0则该类目为根类目
	Pid int64 `json:"pid,omitempty" xml:"pid,omitempty"`
	// 直属类目id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

TagCatLink 结构体

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

TagLink 结构体

type XiamiContentAlbumInfoGetAPIRequest added in v1.2.5

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

XiamiContentAlbumInfoGetAPIRequest 获取专辑信息 API请求 xiami.content.album.info.get

获取专辑信息

func NewXiamiContentAlbumInfoGetRequest added in v1.2.5

func NewXiamiContentAlbumInfoGetRequest() *XiamiContentAlbumInfoGetAPIRequest

NewXiamiContentAlbumInfoGetRequest 初始化XiamiContentAlbumInfoGetAPIRequest对象

func (XiamiContentAlbumInfoGetAPIRequest) GetAlbumIds added in v1.2.5

func (r XiamiContentAlbumInfoGetAPIRequest) GetAlbumIds() int64

GetAlbumIds AlbumIds Getter

func (XiamiContentAlbumInfoGetAPIRequest) GetApiMethodName added in v1.2.5

func (r XiamiContentAlbumInfoGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (XiamiContentAlbumInfoGetAPIRequest) GetApiParams added in v1.2.5

func (r XiamiContentAlbumInfoGetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (XiamiContentAlbumInfoGetAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*XiamiContentAlbumInfoGetAPIRequest) SetAlbumIds added in v1.2.5

func (r *XiamiContentAlbumInfoGetAPIRequest) SetAlbumIds(_albumIds int64) error

SetAlbumIds is AlbumIds Setter 专辑id

type XiamiContentAlbumInfoGetAPIResponse added in v1.2.5

type XiamiContentAlbumInfoGetAPIResponse struct {
	model.CommonResponse
	XiamiContentAlbumInfoGetAPIResponseModel
}

XiamiContentAlbumInfoGetAPIResponse 获取专辑信息 API返回值 xiami.content.album.info.get

获取专辑信息

type XiamiContentAlbumInfoGetAPIResponseModel added in v1.2.5

type XiamiContentAlbumInfoGetAPIResponseModel struct {
	XMLName xml.Name `xml:"xiami_content_album_info_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 专辑信息
	AlbumList []AlbumDto `json:"album_list,omitempty" xml:"album_list>album_dto,omitempty"`
	// 返回结果
	ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"`
}

XiamiContentAlbumInfoGetAPIResponseModel is 获取专辑信息 成功返回结果

type XiamiContentCompanyInfoGetAPIRequest added in v1.2.5

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

XiamiContentCompanyInfoGetAPIRequest 获取厂牌信息 API请求 xiami.content.company.info.get

获取厂牌信息

func NewXiamiContentCompanyInfoGetRequest added in v1.2.5

func NewXiamiContentCompanyInfoGetRequest() *XiamiContentCompanyInfoGetAPIRequest

NewXiamiContentCompanyInfoGetRequest 初始化XiamiContentCompanyInfoGetAPIRequest对象

func (XiamiContentCompanyInfoGetAPIRequest) GetApiMethodName added in v1.2.5

func (r XiamiContentCompanyInfoGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (XiamiContentCompanyInfoGetAPIRequest) GetApiParams added in v1.2.5

func (r XiamiContentCompanyInfoGetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (XiamiContentCompanyInfoGetAPIRequest) GetCompanyIds added in v1.2.5

func (r XiamiContentCompanyInfoGetAPIRequest) GetCompanyIds() int64

GetCompanyIds CompanyIds Getter

func (XiamiContentCompanyInfoGetAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*XiamiContentCompanyInfoGetAPIRequest) SetCompanyIds added in v1.2.5

func (r *XiamiContentCompanyInfoGetAPIRequest) SetCompanyIds(_companyIds int64) error

SetCompanyIds is CompanyIds Setter 厂牌id

type XiamiContentCompanyInfoGetAPIResponse added in v1.2.5

type XiamiContentCompanyInfoGetAPIResponse struct {
	model.CommonResponse
	XiamiContentCompanyInfoGetAPIResponseModel
}

XiamiContentCompanyInfoGetAPIResponse 获取厂牌信息 API返回值 xiami.content.company.info.get

获取厂牌信息

type XiamiContentCompanyInfoGetAPIResponseModel added in v1.2.5

type XiamiContentCompanyInfoGetAPIResponseModel struct {
	XMLName xml.Name `xml:"xiami_content_company_info_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 厂牌信息
	CompanyList []CompanyDto `json:"company_list,omitempty" xml:"company_list>company_dto,omitempty"`
	// 结果
	ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"`
}

XiamiContentCompanyInfoGetAPIResponseModel is 获取厂牌信息 成功返回结果

type XiamiContentMusicCollectGetAPIRequest added in v1.2.5

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

XiamiContentMusicCollectGetAPIRequest 获取歌单歌曲 API请求 xiami.content.music.collect.get

获取歌单歌曲

func NewXiamiContentMusicCollectGetRequest added in v1.2.5

func NewXiamiContentMusicCollectGetRequest() *XiamiContentMusicCollectGetAPIRequest

NewXiamiContentMusicCollectGetRequest 初始化XiamiContentMusicCollectGetAPIRequest对象

func (XiamiContentMusicCollectGetAPIRequest) GetApiMethodName added in v1.2.5

func (r XiamiContentMusicCollectGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (XiamiContentMusicCollectGetAPIRequest) GetApiParams added in v1.2.5

func (r XiamiContentMusicCollectGetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (XiamiContentMusicCollectGetAPIRequest) GetCollectId added in v1.2.5

GetCollectId CollectId Getter

func (XiamiContentMusicCollectGetAPIRequest) GetPage added in v1.2.5

GetPage Page Getter

func (XiamiContentMusicCollectGetAPIRequest) GetPageSize added in v1.2.5

GetPageSize PageSize Getter

func (XiamiContentMusicCollectGetAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*XiamiContentMusicCollectGetAPIRequest) SetCollectId added in v1.2.5

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

SetCollectId is CollectId Setter 歌单id

func (*XiamiContentMusicCollectGetAPIRequest) SetPage added in v1.2.5

SetPage is Page Setter 页码

func (*XiamiContentMusicCollectGetAPIRequest) SetPageSize added in v1.2.5

func (r *XiamiContentMusicCollectGetAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页数量

type XiamiContentMusicCollectGetAPIResponse added in v1.2.5

type XiamiContentMusicCollectGetAPIResponse struct {
	model.CommonResponse
	XiamiContentMusicCollectGetAPIResponseModel
}

XiamiContentMusicCollectGetAPIResponse 获取歌单歌曲 API返回值 xiami.content.music.collect.get

获取歌单歌曲

type XiamiContentMusicCollectGetAPIResponseModel added in v1.2.5

type XiamiContentMusicCollectGetAPIResponseModel struct {
	XMLName xml.Name `xml:"xiami_content_music_collect_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 音乐信息
	MusicDtoPage *Page `json:"music_dto_page,omitempty" xml:"music_dto_page,omitempty"`
	// 结果code
	ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"`
}

XiamiContentMusicCollectGetAPIResponseModel is 获取歌单歌曲 成功返回结果

type XiamiContentMusicInfoGetAPIRequest added in v1.2.5

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

XiamiContentMusicInfoGetAPIRequest 获取音乐信息 API请求 xiami.content.music.info.get

(批量)获取歌曲信息

func NewXiamiContentMusicInfoGetRequest added in v1.2.5

func NewXiamiContentMusicInfoGetRequest() *XiamiContentMusicInfoGetAPIRequest

NewXiamiContentMusicInfoGetRequest 初始化XiamiContentMusicInfoGetAPIRequest对象

func (XiamiContentMusicInfoGetAPIRequest) GetApiMethodName added in v1.2.5

func (r XiamiContentMusicInfoGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (XiamiContentMusicInfoGetAPIRequest) GetApiParams added in v1.2.5

func (r XiamiContentMusicInfoGetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (XiamiContentMusicInfoGetAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (XiamiContentMusicInfoGetAPIRequest) GetSongIds added in v1.2.5

GetSongIds SongIds Getter

func (*XiamiContentMusicInfoGetAPIRequest) SetSongIds added in v1.2.5

func (r *XiamiContentMusicInfoGetAPIRequest) SetSongIds(_songIds int64) error

SetSongIds is SongIds Setter 歌曲id

type XiamiContentMusicInfoGetAPIResponse added in v1.2.5

type XiamiContentMusicInfoGetAPIResponse struct {
	model.CommonResponse
	XiamiContentMusicInfoGetAPIResponseModel
}

XiamiContentMusicInfoGetAPIResponse 获取音乐信息 API返回值 xiami.content.music.info.get

(批量)获取歌曲信息

type XiamiContentMusicInfoGetAPIResponseModel added in v1.2.5

type XiamiContentMusicInfoGetAPIResponseModel struct {
	XMLName xml.Name `xml:"xiami_content_music_info_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 音乐信息
	MusicList []MusicDto `json:"music_list,omitempty" xml:"music_list>music_dto,omitempty"`
	// 错误信息
	ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"`
}

XiamiContentMusicInfoGetAPIResponseModel is 获取音乐信息 成功返回结果

type XiamiContentMusicInfoQueryAPIRequest added in v1.2.5

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

XiamiContentMusicInfoQueryAPIRequest 搜索音乐 API请求 xiami.content.music.info.query

(批量)获取歌曲信息

func NewXiamiContentMusicInfoQueryRequest added in v1.2.5

func NewXiamiContentMusicInfoQueryRequest() *XiamiContentMusicInfoQueryAPIRequest

NewXiamiContentMusicInfoQueryRequest 初始化XiamiContentMusicInfoQueryAPIRequest对象

func (XiamiContentMusicInfoQueryAPIRequest) GetApiMethodName added in v1.2.5

func (r XiamiContentMusicInfoQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (XiamiContentMusicInfoQueryAPIRequest) GetApiParams added in v1.2.5

func (r XiamiContentMusicInfoQueryAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (XiamiContentMusicInfoQueryAPIRequest) GetOrderBy added in v1.2.5

GetOrderBy OrderBy Getter

func (XiamiContentMusicInfoQueryAPIRequest) GetPage added in v1.2.5

GetPage Page Getter

func (XiamiContentMusicInfoQueryAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (XiamiContentMusicInfoQueryAPIRequest) GetSearchTerms added in v1.2.5

GetSearchTerms SearchTerms Getter

func (XiamiContentMusicInfoQueryAPIRequest) GetTagOptional added in v1.2.5

GetTagOptional TagOptional Getter

func (*XiamiContentMusicInfoQueryAPIRequest) SetOrderBy added in v1.2.5

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

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

func (*XiamiContentMusicInfoQueryAPIRequest) SetPage added in v1.2.5

SetPage is Page Setter 分页信息

func (*XiamiContentMusicInfoQueryAPIRequest) SetSearchTerms added in v1.2.5

func (r *XiamiContentMusicInfoQueryAPIRequest) SetSearchTerms(_searchTerms *SearchTermsDto) error

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

func (*XiamiContentMusicInfoQueryAPIRequest) SetTagOptional added in v1.2.5

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

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

type XiamiContentMusicInfoQueryAPIResponse added in v1.2.5

type XiamiContentMusicInfoQueryAPIResponse struct {
	model.CommonResponse
	XiamiContentMusicInfoQueryAPIResponseModel
}

XiamiContentMusicInfoQueryAPIResponse 搜索音乐 API返回值 xiami.content.music.info.query

(批量)获取歌曲信息

type XiamiContentMusicInfoQueryAPIResponseModel added in v1.2.5

type XiamiContentMusicInfoQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"xiami_content_music_info_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 音乐信息
	MusicDtoPage *Page `json:"music_dto_page,omitempty" xml:"music_dto_page,omitempty"`
	// 结果code
	ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"`
}

XiamiContentMusicInfoQueryAPIResponseModel is 搜索音乐 成功返回结果

type XiamiContentSongsAudioGetAPIRequest added in v1.2.0

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

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

获取歌曲音频

func NewXiamiContentSongsAudioGetRequest

func NewXiamiContentSongsAudioGetRequest() *XiamiContentSongsAudioGetAPIRequest

NewXiamiContentSongsAudioGetRequest 初始化XiamiContentSongsAudioGetAPIRequest对象

func (XiamiContentSongsAudioGetAPIRequest) GetApiMethodName added in v1.2.0

func (r XiamiContentSongsAudioGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (XiamiContentSongsAudioGetAPIRequest) GetApiParams added in v1.2.0

func (r XiamiContentSongsAudioGetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (XiamiContentSongsAudioGetAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (XiamiContentSongsAudioGetAPIRequest) GetSongIds added in v1.2.0

func (r XiamiContentSongsAudioGetAPIRequest) GetSongIds() []int64

GetSongIds SongIds Getter

func (*XiamiContentSongsAudioGetAPIRequest) SetSongIds added in v1.2.0

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

SetSongIds is SongIds Setter 歌曲ID

type XiamiContentSongsAudioGetAPIResponse

type XiamiContentSongsAudioGetAPIResponse struct {
	model.CommonResponse
	XiamiContentSongsAudioGetAPIResponseModel
}

XiamiContentSongsAudioGetAPIResponse 获取歌曲音频 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"`
	// 音频信息
	Audios []SongAudiosDto `json:"audios,omitempty" xml:"audios>song_audios_dto,omitempty"`
	// 请求结果信息
	ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"`
}

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

type XiamiContentSongsAudioGetrefrainAPIRequest added in v1.2.0

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

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

获取歌曲音频副歌

func NewXiamiContentSongsAudioGetrefrainRequest

func NewXiamiContentSongsAudioGetrefrainRequest() *XiamiContentSongsAudioGetrefrainAPIRequest

NewXiamiContentSongsAudioGetrefrainRequest 初始化XiamiContentSongsAudioGetrefrainAPIRequest对象

func (XiamiContentSongsAudioGetrefrainAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (XiamiContentSongsAudioGetrefrainAPIRequest) GetApiParams added in v1.2.0

func (r XiamiContentSongsAudioGetrefrainAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (XiamiContentSongsAudioGetrefrainAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (XiamiContentSongsAudioGetrefrainAPIRequest) GetSongIds added in v1.2.0

GetSongIds SongIds Getter

func (*XiamiContentSongsAudioGetrefrainAPIRequest) SetSongIds added in v1.2.0

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

SetSongIds is SongIds Setter 歌曲ID

type XiamiContentSongsAudioGetrefrainAPIResponse

type XiamiContentSongsAudioGetrefrainAPIResponse struct {
	model.CommonResponse
	XiamiContentSongsAudioGetrefrainAPIResponseModel
}

XiamiContentSongsAudioGetrefrainAPIResponse 获取副歌信息 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"`
	// 音频信息
	Audios []SongAudiosDto `json:"audios,omitempty" xml:"audios>song_audios_dto,omitempty"`
	// 请求结果信息
	ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"`
}

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

type XiamiContentSongsCollectGetAPIRequest added in v1.2.0

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

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

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

func NewXiamiContentSongsCollectGetRequest

func NewXiamiContentSongsCollectGetRequest() *XiamiContentSongsCollectGetAPIRequest

NewXiamiContentSongsCollectGetRequest 初始化XiamiContentSongsCollectGetAPIRequest对象

func (XiamiContentSongsCollectGetAPIRequest) GetApiMethodName added in v1.2.0

func (r XiamiContentSongsCollectGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (XiamiContentSongsCollectGetAPIRequest) GetApiParams added in v1.2.0

func (r XiamiContentSongsCollectGetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (XiamiContentSongsCollectGetAPIRequest) GetCollectId added in v1.2.0

GetCollectId CollectId Getter

func (XiamiContentSongsCollectGetAPIRequest) GetPage added in v1.2.0

GetPage Page Getter

func (XiamiContentSongsCollectGetAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*XiamiContentSongsCollectGetAPIRequest) SetCollectId added in v1.2.0

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

SetCollectId is CollectId Setter 歌单id

func (*XiamiContentSongsCollectGetAPIRequest) SetPage added in v1.2.0

SetPage is Page Setter 分页信息

type XiamiContentSongsCollectGetAPIResponse

type XiamiContentSongsCollectGetAPIResponse struct {
	model.CommonResponse
	XiamiContentSongsCollectGetAPIResponseModel
}

XiamiContentSongsCollectGetAPIResponse 获取歌单详情接口 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"`
}

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

type XiamiContentSongsInfoGetAPIRequest added in v1.2.0

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

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

(批量)获取歌曲信息

func NewXiamiContentSongsInfoGetRequest

func NewXiamiContentSongsInfoGetRequest() *XiamiContentSongsInfoGetAPIRequest

NewXiamiContentSongsInfoGetRequest 初始化XiamiContentSongsInfoGetAPIRequest对象

func (XiamiContentSongsInfoGetAPIRequest) GetApiMethodName added in v1.2.0

func (r XiamiContentSongsInfoGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (XiamiContentSongsInfoGetAPIRequest) GetApiParams added in v1.2.0

func (r XiamiContentSongsInfoGetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (XiamiContentSongsInfoGetAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (XiamiContentSongsInfoGetAPIRequest) GetSongIds added in v1.2.0

func (r XiamiContentSongsInfoGetAPIRequest) GetSongIds() []int64

GetSongIds SongIds Getter

func (*XiamiContentSongsInfoGetAPIRequest) SetSongIds added in v1.2.0

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

SetSongIds is SongIds Setter 歌曲ID

type XiamiContentSongsInfoGetAPIResponse

type XiamiContentSongsInfoGetAPIResponse struct {
	model.CommonResponse
	XiamiContentSongsInfoGetAPIResponseModel
}

XiamiContentSongsInfoGetAPIResponse 获取歌曲信息 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"`
	// 歌曲信息
	Songs []SongInfoDto `json:"songs,omitempty" xml:"songs>song_info_dto,omitempty"`
	// 系统自动生成
	ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"`
}

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

type XiamiContentSongsInfoQueryAPIRequest added in v1.2.0

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

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

多维度查询歌曲列表

func NewXiamiContentSongsInfoQueryRequest

func NewXiamiContentSongsInfoQueryRequest() *XiamiContentSongsInfoQueryAPIRequest

NewXiamiContentSongsInfoQueryRequest 初始化XiamiContentSongsInfoQueryAPIRequest对象

func (XiamiContentSongsInfoQueryAPIRequest) GetApiMethodName added in v1.2.0

func (r XiamiContentSongsInfoQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (XiamiContentSongsInfoQueryAPIRequest) GetApiParams added in v1.2.0

func (r XiamiContentSongsInfoQueryAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (XiamiContentSongsInfoQueryAPIRequest) GetOrderBy added in v1.2.0

GetOrderBy OrderBy Getter

func (XiamiContentSongsInfoQueryAPIRequest) GetPage added in v1.2.0

GetPage Page Getter

func (XiamiContentSongsInfoQueryAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (XiamiContentSongsInfoQueryAPIRequest) GetSearchTerms added in v1.2.0

GetSearchTerms SearchTerms Getter

func (XiamiContentSongsInfoQueryAPIRequest) GetTagOptional added in v1.2.0

GetTagOptional TagOptional Getter

func (*XiamiContentSongsInfoQueryAPIRequest) SetOrderBy added in v1.2.0

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

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

func (*XiamiContentSongsInfoQueryAPIRequest) SetPage added in v1.2.0

SetPage is Page Setter 分页信息

func (*XiamiContentSongsInfoQueryAPIRequest) SetSearchTerms added in v1.2.0

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

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

func (*XiamiContentSongsInfoQueryAPIRequest) SetTagOptional added in v1.2.0

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

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

type XiamiContentSongsInfoQueryAPIResponse

type XiamiContentSongsInfoQueryAPIResponse struct {
	model.CommonResponse
	XiamiContentSongsInfoQueryAPIResponseModel
}

XiamiContentSongsInfoQueryAPIResponse 搜索歌曲列表 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"`
}

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

Jump to

Keyboard shortcuts

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