Documentation ¶
Overview ¶
曲库开放平台歌曲API model
Index ¶
- type AlbumDto
- type ArtistDto
- type AudioDto
- type CollectDto
- type LyricDto
- type LyricsDto
- type MvDto
- type Page
- type PagingVo
- type ResultCode
- type SearchTermsDto
- type SongAudiosDto
- type SongCatTagDto
- type SongCatsSearchDto
- type SongInfoDto
- type TagCatLink
- type TagLink
- type XiamiContentMvDetailGetAPIResponse
- type XiamiContentMvDetailGetRequest
- type XiamiContentMvDetailGetResponse
- type XiamiContentSongsAudioGetAPIResponse
- type XiamiContentSongsAudioGetRequest
- type XiamiContentSongsAudioGetResponse
- type XiamiContentSongsAudioGetrefrainAPIResponse
- type XiamiContentSongsAudioGetrefrainRequest
- func (r XiamiContentSongsAudioGetrefrainRequest) GetApiMethodName() string
- func (r XiamiContentSongsAudioGetrefrainRequest) GetApiParams() url.Values
- func (r XiamiContentSongsAudioGetrefrainRequest) GetSongIds() []int64
- func (r *XiamiContentSongsAudioGetrefrainRequest) SetSongIds(songIds []int64) error
- type XiamiContentSongsAudioGetrefrainResponse
- type XiamiContentSongsCollectGetAPIResponse
- type XiamiContentSongsCollectGetRequest
- func (r XiamiContentSongsCollectGetRequest) GetApiMethodName() string
- func (r XiamiContentSongsCollectGetRequest) GetApiParams() url.Values
- func (r XiamiContentSongsCollectGetRequest) GetCollectId() int64
- func (r XiamiContentSongsCollectGetRequest) GetPage() *PagingVo
- func (r *XiamiContentSongsCollectGetRequest) SetCollectId(collectId int64) error
- func (r *XiamiContentSongsCollectGetRequest) SetPage(page *PagingVo) error
- type XiamiContentSongsCollectGetResponse
- type XiamiContentSongsInfoGetAPIResponse
- type XiamiContentSongsInfoGetRequest
- type XiamiContentSongsInfoGetResponse
- type XiamiContentSongsInfoQueryAPIResponse
- type XiamiContentSongsInfoQueryRequest
- func (r XiamiContentSongsInfoQueryRequest) GetApiMethodName() string
- func (r XiamiContentSongsInfoQueryRequest) GetApiParams() url.Values
- func (r XiamiContentSongsInfoQueryRequest) GetOrderBy() int64
- func (r XiamiContentSongsInfoQueryRequest) GetPage() *PagingVo
- func (r XiamiContentSongsInfoQueryRequest) GetSearchTerms() []SearchTermsDto
- func (r XiamiContentSongsInfoQueryRequest) GetTagOptional() *SongCatsSearchDto
- func (r *XiamiContentSongsInfoQueryRequest) SetOrderBy(orderBy int64) error
- func (r *XiamiContentSongsInfoQueryRequest) SetPage(page *PagingVo) error
- func (r *XiamiContentSongsInfoQueryRequest) SetSearchTerms(searchTerms []SearchTermsDto) error
- func (r *XiamiContentSongsInfoQueryRequest) SetTagOptional(tagOptional *SongCatsSearchDto) error
- type XiamiContentSongsInfoQueryResponse
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 ¶
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 ¶
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 XiamiContentMvDetailGetAPIResponse ¶
type XiamiContentMvDetailGetAPIResponse struct { model.CommonResponse XiamiContentMvDetailGetResponse }
获取mv详情 API返回值 xiami.content.mv.detail.get
获取mv详情
type XiamiContentMvDetailGetRequest ¶
type XiamiContentMvDetailGetRequest struct { model.Params // contains filtered or unexported fields }
获取mv详情 API请求 xiami.content.mv.detail.get
获取mv详情
func NewXiamiContentMvDetailGetRequest ¶
func NewXiamiContentMvDetailGetRequest() *XiamiContentMvDetailGetRequest
初始化XiamiContentMvDetailGetRequest对象
func (XiamiContentMvDetailGetRequest) GetApiMethodName ¶
func (r XiamiContentMvDetailGetRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (XiamiContentMvDetailGetRequest) GetApiParams ¶
func (r XiamiContentMvDetailGetRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (XiamiContentMvDetailGetRequest) GetMvIds ¶
func (r XiamiContentMvDetailGetRequest) GetMvIds() []int64
MvIds Getter
func (*XiamiContentMvDetailGetRequest) SetMvIds ¶
func (r *XiamiContentMvDetailGetRequest) SetMvIds(mvIds []int64) error
MvIds Setter mvId
type XiamiContentMvDetailGetResponse ¶
type XiamiContentMvDetailGetResponse 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 XiamiContentSongsAudioGetAPIResponse ¶
type XiamiContentSongsAudioGetAPIResponse struct { model.CommonResponse XiamiContentSongsAudioGetResponse }
获取歌曲音频 API返回值 xiami.content.songs.audio.get
获取歌曲音频
type XiamiContentSongsAudioGetRequest ¶
type XiamiContentSongsAudioGetRequest struct { model.Params // contains filtered or unexported fields }
获取歌曲音频 API请求 xiami.content.songs.audio.get
获取歌曲音频
func NewXiamiContentSongsAudioGetRequest ¶
func NewXiamiContentSongsAudioGetRequest() *XiamiContentSongsAudioGetRequest
初始化XiamiContentSongsAudioGetRequest对象
func (XiamiContentSongsAudioGetRequest) GetApiMethodName ¶
func (r XiamiContentSongsAudioGetRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (XiamiContentSongsAudioGetRequest) GetApiParams ¶
func (r XiamiContentSongsAudioGetRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (XiamiContentSongsAudioGetRequest) GetSongIds ¶
func (r XiamiContentSongsAudioGetRequest) GetSongIds() []int64
SongIds Getter
func (*XiamiContentSongsAudioGetRequest) SetSongIds ¶
func (r *XiamiContentSongsAudioGetRequest) SetSongIds(songIds []int64) error
SongIds Setter 歌曲ID
type XiamiContentSongsAudioGetResponse ¶
type XiamiContentSongsAudioGetResponse 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 XiamiContentSongsAudioGetrefrainAPIResponse ¶
type XiamiContentSongsAudioGetrefrainAPIResponse struct { model.CommonResponse XiamiContentSongsAudioGetrefrainResponse }
获取副歌信息 API返回值 xiami.content.songs.audio.getrefrain
获取歌曲音频副歌
type XiamiContentSongsAudioGetrefrainRequest ¶
type XiamiContentSongsAudioGetrefrainRequest struct { model.Params // contains filtered or unexported fields }
获取副歌信息 API请求 xiami.content.songs.audio.getrefrain
获取歌曲音频副歌
func NewXiamiContentSongsAudioGetrefrainRequest ¶
func NewXiamiContentSongsAudioGetrefrainRequest() *XiamiContentSongsAudioGetrefrainRequest
初始化XiamiContentSongsAudioGetrefrainRequest对象
func (XiamiContentSongsAudioGetrefrainRequest) GetApiMethodName ¶
func (r XiamiContentSongsAudioGetrefrainRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (XiamiContentSongsAudioGetrefrainRequest) GetApiParams ¶
func (r XiamiContentSongsAudioGetrefrainRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (XiamiContentSongsAudioGetrefrainRequest) GetSongIds ¶
func (r XiamiContentSongsAudioGetrefrainRequest) GetSongIds() []int64
SongIds Getter
func (*XiamiContentSongsAudioGetrefrainRequest) SetSongIds ¶
func (r *XiamiContentSongsAudioGetrefrainRequest) SetSongIds(songIds []int64) error
SongIds Setter 歌曲ID
type XiamiContentSongsAudioGetrefrainResponse ¶
type XiamiContentSongsAudioGetrefrainResponse 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 XiamiContentSongsCollectGetAPIResponse ¶
type XiamiContentSongsCollectGetAPIResponse struct { model.CommonResponse XiamiContentSongsCollectGetResponse }
获取歌单详情接口 API返回值 xiami.content.songs.collect.get
根据歌单id,获取歌单详情
type XiamiContentSongsCollectGetRequest ¶
type XiamiContentSongsCollectGetRequest struct { model.Params // contains filtered or unexported fields }
获取歌单详情接口 API请求 xiami.content.songs.collect.get
根据歌单id,获取歌单详情
func NewXiamiContentSongsCollectGetRequest ¶
func NewXiamiContentSongsCollectGetRequest() *XiamiContentSongsCollectGetRequest
初始化XiamiContentSongsCollectGetRequest对象
func (XiamiContentSongsCollectGetRequest) GetApiMethodName ¶
func (r XiamiContentSongsCollectGetRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (XiamiContentSongsCollectGetRequest) GetApiParams ¶
func (r XiamiContentSongsCollectGetRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (XiamiContentSongsCollectGetRequest) GetCollectId ¶
func (r XiamiContentSongsCollectGetRequest) GetCollectId() int64
CollectId Getter
func (XiamiContentSongsCollectGetRequest) GetPage ¶
func (r XiamiContentSongsCollectGetRequest) GetPage() *PagingVo
Page Getter
func (*XiamiContentSongsCollectGetRequest) SetCollectId ¶
func (r *XiamiContentSongsCollectGetRequest) SetCollectId(collectId int64) error
CollectId Setter 歌单id
func (*XiamiContentSongsCollectGetRequest) SetPage ¶
func (r *XiamiContentSongsCollectGetRequest) SetPage(page *PagingVo) error
Page Setter 分页信息
type XiamiContentSongsCollectGetResponse ¶
type XiamiContentSongsCollectGetResponse 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 XiamiContentSongsInfoGetAPIResponse ¶
type XiamiContentSongsInfoGetAPIResponse struct { model.CommonResponse XiamiContentSongsInfoGetResponse }
获取歌曲信息 API返回值 xiami.content.songs.info.get
(批量)获取歌曲信息
type XiamiContentSongsInfoGetRequest ¶
type XiamiContentSongsInfoGetRequest struct { model.Params // contains filtered or unexported fields }
获取歌曲信息 API请求 xiami.content.songs.info.get
(批量)获取歌曲信息
func NewXiamiContentSongsInfoGetRequest ¶
func NewXiamiContentSongsInfoGetRequest() *XiamiContentSongsInfoGetRequest
初始化XiamiContentSongsInfoGetRequest对象
func (XiamiContentSongsInfoGetRequest) GetApiMethodName ¶
func (r XiamiContentSongsInfoGetRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (XiamiContentSongsInfoGetRequest) GetApiParams ¶
func (r XiamiContentSongsInfoGetRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (XiamiContentSongsInfoGetRequest) GetSongIds ¶
func (r XiamiContentSongsInfoGetRequest) GetSongIds() []int64
SongIds Getter
func (*XiamiContentSongsInfoGetRequest) SetSongIds ¶
func (r *XiamiContentSongsInfoGetRequest) SetSongIds(songIds []int64) error
SongIds Setter 歌曲ID
type XiamiContentSongsInfoGetResponse ¶
type XiamiContentSongsInfoGetResponse 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 XiamiContentSongsInfoQueryAPIResponse ¶
type XiamiContentSongsInfoQueryAPIResponse struct { model.CommonResponse XiamiContentSongsInfoQueryResponse }
搜索歌曲列表 API返回值 xiami.content.songs.info.query
多维度查询歌曲列表
type XiamiContentSongsInfoQueryRequest ¶
type XiamiContentSongsInfoQueryRequest struct { model.Params // contains filtered or unexported fields }
搜索歌曲列表 API请求 xiami.content.songs.info.query
多维度查询歌曲列表
func NewXiamiContentSongsInfoQueryRequest ¶
func NewXiamiContentSongsInfoQueryRequest() *XiamiContentSongsInfoQueryRequest
初始化XiamiContentSongsInfoQueryRequest对象
func (XiamiContentSongsInfoQueryRequest) GetApiMethodName ¶
func (r XiamiContentSongsInfoQueryRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (XiamiContentSongsInfoQueryRequest) GetApiParams ¶
func (r XiamiContentSongsInfoQueryRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (XiamiContentSongsInfoQueryRequest) GetOrderBy ¶
func (r XiamiContentSongsInfoQueryRequest) GetOrderBy() int64
OrderBy Getter
func (XiamiContentSongsInfoQueryRequest) GetPage ¶
func (r XiamiContentSongsInfoQueryRequest) GetPage() *PagingVo
Page Getter
func (XiamiContentSongsInfoQueryRequest) GetSearchTerms ¶
func (r XiamiContentSongsInfoQueryRequest) GetSearchTerms() []SearchTermsDto
SearchTerms Getter
func (XiamiContentSongsInfoQueryRequest) GetTagOptional ¶
func (r XiamiContentSongsInfoQueryRequest) GetTagOptional() *SongCatsSearchDto
TagOptional Getter
func (*XiamiContentSongsInfoQueryRequest) SetOrderBy ¶
func (r *XiamiContentSongsInfoQueryRequest) SetOrderBy(orderBy int64) error
OrderBy Setter 排序,默认按照最新排序 1最新 2本周最热 3本月最热
func (*XiamiContentSongsInfoQueryRequest) SetPage ¶
func (r *XiamiContentSongsInfoQueryRequest) SetPage(page *PagingVo) error
Page Setter 分页信息
func (*XiamiContentSongsInfoQueryRequest) SetSearchTerms ¶
func (r *XiamiContentSongsInfoQueryRequest) SetSearchTerms(searchTerms []SearchTermsDto) error
SearchTerms Setter 搜索条件 key支持songName/singerName/copyrightStatus/publishStatus/keyword
func (*XiamiContentSongsInfoQueryRequest) SetTagOptional ¶
func (r *XiamiContentSongsInfoQueryRequest) SetTagOptional(tagOptional *SongCatsSearchDto) error
TagOptional Setter tag搜索条件,tag尽量不要超过50个
type XiamiContentSongsInfoQueryResponse ¶
type XiamiContentSongsInfoQueryResponse 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"` }
搜索歌曲列表 成功返回结果
Source Files ¶
- AlbumDto.go
- ArtistDto.go
- AudioDto.go
- CollectDto.go
- LyricDto.go
- LyricsDto.go
- MvDto.go
- Page.go
- PagingVo.go
- ResultCode.go
- SearchTermsDto.go
- SongAudiosDto.go
- SongCatTagDto.go
- SongCatsSearchDto.go
- SongInfoDto.go
- TagCatLink.go
- TagLink.go
- XiamiContentMvDetailGetRequest.go
- XiamiContentMvDetailGetResponse.go
- XiamiContentSongsAudioGetRequest.go
- XiamiContentSongsAudioGetResponse.go
- XiamiContentSongsAudioGetrefrainRequest.go
- XiamiContentSongsAudioGetrefrainResponse.go
- XiamiContentSongsCollectGetRequest.go
- XiamiContentSongsCollectGetResponse.go
- XiamiContentSongsInfoGetRequest.go
- XiamiContentSongsInfoGetResponse.go
- XiamiContentSongsInfoQueryRequest.go
- XiamiContentSongsInfoQueryResponse.go
- doc.go