Documentation ¶
Overview ¶
Package xiamiopen 包含虾米开放平台相关结构体
Index ¶
- func ReleaseAlbumDo(v *AlbumDo)
- func ReleaseArtistDo(v *ArtistDo)
- func ReleaseListenFileDo(v *ListenFileDo)
- func ReleaseSongDetailDo(v *SongDetailDo)
- func ReleaseSongPlayInfoDo(v *SongPlayInfoDo)
- func ReleaseXiamiApiSongDetailGetAPIRequest(v *XiamiApiSongDetailGetAPIRequest)
- func ReleaseXiamiApiSongDetailGetAPIResponse(v *XiamiApiSongDetailGetAPIResponse)
- func ReleaseXiamiApiSongListenfileGetAPIRequest(v *XiamiApiSongListenfileGetAPIRequest)
- func ReleaseXiamiApiSongListenfileGetAPIResponse(v *XiamiApiSongListenfileGetAPIResponse)
- type AlbumDo
- type ArtistDo
- type ListenFileDo
- type SongDetailDo
- type SongPlayInfoDo
- type XiamiApiSongDetailGetAPIRequest
- func (r XiamiApiSongDetailGetAPIRequest) GetApiMethodName() string
- func (r XiamiApiSongDetailGetAPIRequest) GetApiParams(params url.Values)
- func (r XiamiApiSongDetailGetAPIRequest) GetRawParams() model.Params
- func (r XiamiApiSongDetailGetAPIRequest) GetSongIds() []int64
- func (r *XiamiApiSongDetailGetAPIRequest) Reset()
- func (r *XiamiApiSongDetailGetAPIRequest) SetSongIds(_songIds []int64) error
- type XiamiApiSongDetailGetAPIResponse
- type XiamiApiSongDetailGetAPIResponseModel
- type XiamiApiSongListenfileGetAPIRequest
- func (r XiamiApiSongListenfileGetAPIRequest) GetApiMethodName() string
- func (r XiamiApiSongListenfileGetAPIRequest) GetApiParams(params url.Values)
- func (r XiamiApiSongListenfileGetAPIRequest) GetRawParams() model.Params
- func (r XiamiApiSongListenfileGetAPIRequest) GetSongIds() []int64
- func (r *XiamiApiSongListenfileGetAPIRequest) Reset()
- func (r *XiamiApiSongListenfileGetAPIRequest) SetSongIds(_songIds []int64) error
- type XiamiApiSongListenfileGetAPIResponse
- type XiamiApiSongListenfileGetAPIResponseModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReleaseListenFileDo ¶ added in v1.3.4
func ReleaseListenFileDo(v *ListenFileDo)
ReleaseListenFileDo 释放ListenFileDo
func ReleaseSongDetailDo ¶ added in v1.3.4
func ReleaseSongDetailDo(v *SongDetailDo)
ReleaseSongDetailDo 释放SongDetailDo
func ReleaseSongPlayInfoDo ¶ added in v1.3.4
func ReleaseSongPlayInfoDo(v *SongPlayInfoDo)
ReleaseSongPlayInfoDo 释放SongPlayInfoDo
func ReleaseXiamiApiSongDetailGetAPIRequest ¶ added in v1.3.4
func ReleaseXiamiApiSongDetailGetAPIRequest(v *XiamiApiSongDetailGetAPIRequest)
ReleaseXiamiApiSongDetailGetAPIRequest 将 XiamiApiSongDetailGetAPIRequest 放入 sync.Pool
func ReleaseXiamiApiSongDetailGetAPIResponse ¶ added in v1.3.4
func ReleaseXiamiApiSongDetailGetAPIResponse(v *XiamiApiSongDetailGetAPIResponse)
ReleaseXiamiApiSongDetailGetAPIResponse 将 XiamiApiSongDetailGetAPIResponse 保存到 sync.Pool
func ReleaseXiamiApiSongListenfileGetAPIRequest ¶ added in v1.3.4
func ReleaseXiamiApiSongListenfileGetAPIRequest(v *XiamiApiSongListenfileGetAPIRequest)
ReleaseXiamiApiSongListenfileGetAPIRequest 将 XiamiApiSongListenfileGetAPIRequest 放入 sync.Pool
func ReleaseXiamiApiSongListenfileGetAPIResponse ¶ added in v1.3.4
func ReleaseXiamiApiSongListenfileGetAPIResponse(v *XiamiApiSongListenfileGetAPIResponse)
ReleaseXiamiApiSongListenfileGetAPIResponse 将 XiamiApiSongListenfileGetAPIResponse 保存到 sync.Pool
Types ¶
type AlbumDo ¶
type AlbumDo struct { // 专辑名称 AlbumName string `json:"album_name,omitempty" xml:"album_name,omitempty"` }
AlbumDo 结构体
type ArtistDo ¶
type ArtistDo struct { // 艺人别名 Alias string `json:"alias,omitempty" xml:"alias,omitempty"` // 艺人logo ArtistLogo string `json:"artist_logo,omitempty" xml:"artist_logo,omitempty"` // 艺人名 ArtistName string `json:"artist_name,omitempty" xml:"artist_name,omitempty"` // 艺人id ArtistId int64 `json:"artist_id,omitempty" xml:"artist_id,omitempty"` // 是否音乐人 Musician bool `json:"musician,omitempty" xml:"musician,omitempty"` }
ArtistDo 结构体
type ListenFileDo ¶
type ListenFileDo struct { // 试听文件地址 ListenFile string `json:"listen_file,omitempty" xml:"listen_file,omitempty"` // 歌曲品质,l为低品质,h为高品质,s为无损 Quality string `json:"quality,omitempty" xml:"quality,omitempty"` // 超时时间 Expire int64 `json:"expire,omitempty" xml:"expire,omitempty"` }
ListenFileDo 结构体
func GetListenFileDo ¶ added in v1.3.4
func GetListenFileDo() *ListenFileDo
GetListenFileDo() 从对象池中获取ListenFileDo
type SongDetailDo ¶
type SongDetailDo struct { // 演唱者 Singers []ArtistDo `json:"singers,omitempty" xml:"singers>artist_do,omitempty"` // mvId MvId string `json:"mv_id,omitempty" xml:"mv_id,omitempty"` // 专辑logo AlbumLogo string `json:"album_logo,omitempty" xml:"album_logo,omitempty"` // 编曲 Arrangement string `json:"arrangement,omitempty" xml:"arrangement,omitempty"` // 作词 Composer string `json:"composer,omitempty" xml:"composer,omitempty"` // 歌曲名 SongName string `json:"song_name,omitempty" xml:"song_name,omitempty"` // 作曲 Songwriters string `json:"songwriters,omitempty" xml:"songwriters,omitempty"` // 歌词文件地址 LyricFile string `json:"lyric_file,omitempty" xml:"lyric_file,omitempty"` // 版权信息 PurviewInfo string `json:"purview_info,omitempty" xml:"purview_info,omitempty"` // 专辑信息 Album *AlbumDo `json:"album,omitempty" xml:"album,omitempty"` // 专辑id AlbumId int64 `json:"album_id,omitempty" xml:"album_id,omitempty"` // artistDO Artist *ArtistDo `json:"artist,omitempty" xml:"artist,omitempty"` // 艺人id ArtistId int64 `json:"artist_id,omitempty" xml:"artist_id,omitempty"` // cd序号 CdSerial int64 `json:"cd_serial,omitempty" xml:"cd_serial,omitempty"` // 歌曲id SongId int64 `json:"song_id,omitempty" xml:"song_id,omitempty"` // 序号 Track int64 `json:"track,omitempty" xml:"track,omitempty"` // 歌词类型 LyricType int64 `json:"lyric_type,omitempty" xml:"lyric_type,omitempty"` // 歌曲时长 Length int64 `json:"length,omitempty" xml:"length,omitempty"` }
SongDetailDo 结构体
func GetSongDetailDo ¶ added in v1.3.4
func GetSongDetailDo() *SongDetailDo
GetSongDetailDo() 从对象池中获取SongDetailDo
type SongPlayInfoDo ¶
type SongPlayInfoDo struct { // 试听文件列表 ListenFileList []ListenFileDo `json:"listen_file_list,omitempty" xml:"listen_file_list>listen_file_do,omitempty"` // 歌曲id SongId int64 `json:"song_id,omitempty" xml:"song_id,omitempty"` }
SongPlayInfoDo 结构体
func GetSongPlayInfoDo ¶ added in v1.3.4
func GetSongPlayInfoDo() *SongPlayInfoDo
GetSongPlayInfoDo() 从对象池中获取SongPlayInfoDo
type XiamiApiSongDetailGetAPIRequest ¶ added in v1.2.0
type XiamiApiSongDetailGetAPIRequest struct { model.Params // contains filtered or unexported fields }
XiamiApiSongDetailGetAPIRequest 获取歌曲详情 API请求 xiami.api.song.detail.get
获取歌曲详情
func GetXiamiApiSongDetailGetAPIRequest ¶ added in v1.3.4
func GetXiamiApiSongDetailGetAPIRequest() *XiamiApiSongDetailGetAPIRequest
GetXiamiApiSongDetailGetRequest 从 sync.Pool 获取 XiamiApiSongDetailGetAPIRequest
func NewXiamiApiSongDetailGetRequest ¶
func NewXiamiApiSongDetailGetRequest() *XiamiApiSongDetailGetAPIRequest
NewXiamiApiSongDetailGetRequest 初始化XiamiApiSongDetailGetAPIRequest对象
func (XiamiApiSongDetailGetAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r XiamiApiSongDetailGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (XiamiApiSongDetailGetAPIRequest) GetApiParams ¶ added in v1.2.0
func (r XiamiApiSongDetailGetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (XiamiApiSongDetailGetAPIRequest) GetRawParams ¶ added in v1.2.8
func (r XiamiApiSongDetailGetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (XiamiApiSongDetailGetAPIRequest) GetSongIds ¶ added in v1.2.0
func (r XiamiApiSongDetailGetAPIRequest) GetSongIds() []int64
GetSongIds SongIds Getter
func (*XiamiApiSongDetailGetAPIRequest) Reset ¶ added in v1.3.4
func (r *XiamiApiSongDetailGetAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*XiamiApiSongDetailGetAPIRequest) SetSongIds ¶ added in v1.2.0
func (r *XiamiApiSongDetailGetAPIRequest) SetSongIds(_songIds []int64) error
SetSongIds is SongIds Setter 歌曲id
type XiamiApiSongDetailGetAPIResponse ¶
type XiamiApiSongDetailGetAPIResponse struct { model.CommonResponse XiamiApiSongDetailGetAPIResponseModel }
XiamiApiSongDetailGetAPIResponse 获取歌曲详情 API返回值 xiami.api.song.detail.get
获取歌曲详情
func GetXiamiApiSongDetailGetAPIResponse ¶ added in v1.3.4
func GetXiamiApiSongDetailGetAPIResponse() *XiamiApiSongDetailGetAPIResponse
GetXiamiApiSongDetailGetAPIResponse 从 sync.Pool 获取 XiamiApiSongDetailGetAPIResponse
func (*XiamiApiSongDetailGetAPIResponse) Reset ¶ added in v1.3.4
func (m *XiamiApiSongDetailGetAPIResponse) Reset()
Reset 清空结构体
type XiamiApiSongDetailGetAPIResponseModel ¶ added in v1.2.0
type XiamiApiSongDetailGetAPIResponseModel struct { XMLName xml.Name `xml:"xiami_api_song_detail_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 歌曲信息 SongDetailList []SongDetailDo `json:"song_detail_list,omitempty" xml:"song_detail_list>song_detail_do,omitempty"` }
XiamiApiSongDetailGetAPIResponseModel is 获取歌曲详情 成功返回结果
func (*XiamiApiSongDetailGetAPIResponseModel) Reset ¶ added in v1.3.4
func (m *XiamiApiSongDetailGetAPIResponseModel) Reset()
Reset 清空结构体
type XiamiApiSongListenfileGetAPIRequest ¶ added in v1.2.0
type XiamiApiSongListenfileGetAPIRequest struct { model.Params // contains filtered or unexported fields }
XiamiApiSongListenfileGetAPIRequest 获取歌曲试听文件 API请求 xiami.api.song.listenfile.get
获取歌曲试听文件
func GetXiamiApiSongListenfileGetAPIRequest ¶ added in v1.3.4
func GetXiamiApiSongListenfileGetAPIRequest() *XiamiApiSongListenfileGetAPIRequest
GetXiamiApiSongListenfileGetRequest 从 sync.Pool 获取 XiamiApiSongListenfileGetAPIRequest
func NewXiamiApiSongListenfileGetRequest ¶
func NewXiamiApiSongListenfileGetRequest() *XiamiApiSongListenfileGetAPIRequest
NewXiamiApiSongListenfileGetRequest 初始化XiamiApiSongListenfileGetAPIRequest对象
func (XiamiApiSongListenfileGetAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r XiamiApiSongListenfileGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (XiamiApiSongListenfileGetAPIRequest) GetApiParams ¶ added in v1.2.0
func (r XiamiApiSongListenfileGetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (XiamiApiSongListenfileGetAPIRequest) GetRawParams ¶ added in v1.2.8
func (r XiamiApiSongListenfileGetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (XiamiApiSongListenfileGetAPIRequest) GetSongIds ¶ added in v1.2.0
func (r XiamiApiSongListenfileGetAPIRequest) GetSongIds() []int64
GetSongIds SongIds Getter
func (*XiamiApiSongListenfileGetAPIRequest) Reset ¶ added in v1.3.4
func (r *XiamiApiSongListenfileGetAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*XiamiApiSongListenfileGetAPIRequest) SetSongIds ¶ added in v1.2.0
func (r *XiamiApiSongListenfileGetAPIRequest) SetSongIds(_songIds []int64) error
SetSongIds is SongIds Setter 歌曲id
type XiamiApiSongListenfileGetAPIResponse ¶
type XiamiApiSongListenfileGetAPIResponse struct { model.CommonResponse XiamiApiSongListenfileGetAPIResponseModel }
XiamiApiSongListenfileGetAPIResponse 获取歌曲试听文件 API返回值 xiami.api.song.listenfile.get
获取歌曲试听文件
func GetXiamiApiSongListenfileGetAPIResponse ¶ added in v1.3.4
func GetXiamiApiSongListenfileGetAPIResponse() *XiamiApiSongListenfileGetAPIResponse
GetXiamiApiSongListenfileGetAPIResponse 从 sync.Pool 获取 XiamiApiSongListenfileGetAPIResponse
func (*XiamiApiSongListenfileGetAPIResponse) Reset ¶ added in v1.3.4
func (m *XiamiApiSongListenfileGetAPIResponse) Reset()
Reset 清空结构体
type XiamiApiSongListenfileGetAPIResponseModel ¶ added in v1.2.0
type XiamiApiSongListenfileGetAPIResponseModel struct { XMLName xml.Name `xml:"xiami_api_song_listenfile_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 歌曲试听文件列表 SongPlayInfoList []SongPlayInfoDo `json:"song_play_info_list,omitempty" xml:"song_play_info_list>song_play_info_do,omitempty"` }
XiamiApiSongListenfileGetAPIResponseModel is 获取歌曲试听文件 成功返回结果
func (*XiamiApiSongListenfileGetAPIResponseModel) Reset ¶ added in v1.3.4
func (m *XiamiApiSongListenfileGetAPIResponseModel) Reset()
Reset 清空结构体