Documentation ¶
Overview ¶
Package xiamiatrist 包含曲库开放平台艺人API相关结构体
Index ¶
- func ReleaseArtistDto(v *ArtistDto)
- func ReleasePage(v *Page)
- func ReleasePaging(v *Paging)
- func ReleasePagingVo(v *PagingVo)
- func ReleaseResultCode(v *ResultCode)
- func ReleaseXiamiContentArtistInfoQueryAPIRequest(v *XiamiContentArtistInfoQueryAPIRequest)
- func ReleaseXiamiContentArtistInfoQueryAPIResponse(v *XiamiContentArtistInfoQueryAPIResponse)
- type ArtistDto
- type Page
- type Paging
- type PagingVo
- type ResultCode
- type XiamiContentArtistInfoQueryAPIRequest
- func (r XiamiContentArtistInfoQueryAPIRequest) GetApiMethodName() string
- func (r XiamiContentArtistInfoQueryAPIRequest) GetApiParams(params url.Values)
- func (r XiamiContentArtistInfoQueryAPIRequest) GetGender() int64
- func (r XiamiContentArtistInfoQueryAPIRequest) GetGenre() int64
- func (r XiamiContentArtistInfoQueryAPIRequest) GetLanguage() int64
- func (r XiamiContentArtistInfoQueryAPIRequest) GetPageReq() *PagingVo
- func (r XiamiContentArtistInfoQueryAPIRequest) GetRawParams() model.Params
- func (r *XiamiContentArtistInfoQueryAPIRequest) Reset()
- func (r *XiamiContentArtistInfoQueryAPIRequest) SetGender(_gender int64) error
- func (r *XiamiContentArtistInfoQueryAPIRequest) SetGenre(_genre int64) error
- func (r *XiamiContentArtistInfoQueryAPIRequest) SetLanguage(_language int64) error
- func (r *XiamiContentArtistInfoQueryAPIRequest) SetPageReq(_pageReq *PagingVo) error
- type XiamiContentArtistInfoQueryAPIResponse
- type XiamiContentArtistInfoQueryAPIResponseModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReleaseArtistDto ¶ added in v1.3.4
func ReleaseArtistDto(v *ArtistDto)
ReleaseArtistDto 释放ArtistDto
func ReleaseResultCode ¶ added in v1.3.4
func ReleaseResultCode(v *ResultCode)
ReleaseResultCode 释放ResultCode
func ReleaseXiamiContentArtistInfoQueryAPIRequest ¶ added in v1.3.4
func ReleaseXiamiContentArtistInfoQueryAPIRequest(v *XiamiContentArtistInfoQueryAPIRequest)
ReleaseXiamiContentArtistInfoQueryAPIRequest 将 XiamiContentArtistInfoQueryAPIRequest 放入 sync.Pool
func ReleaseXiamiContentArtistInfoQueryAPIResponse ¶ added in v1.3.4
func ReleaseXiamiContentArtistInfoQueryAPIResponse(v *XiamiContentArtistInfoQueryAPIResponse)
ReleaseXiamiContentArtistInfoQueryAPIResponse 将 XiamiContentArtistInfoQueryAPIResponse 保存到 sync.Pool
Types ¶
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 Page ¶
type Page struct { // 艺人信息列表 Artists []ArtistDto `json:"artists,omitempty" xml:"artists>artist_dto,omitempty"` // 满足条件的总数 Count int64 `json:"count,omitempty" xml:"count,omitempty"` // 分页信息 Paging *Paging `json:"paging,omitempty" xml:"paging,omitempty"` }
Page 结构体
type Paging ¶
type Paging 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"` }
Paging 结构体
type PagingVo ¶
type PagingVo struct { // 每页展示数 PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` // 页码 Page int64 `json:"page,omitempty" xml:"page,omitempty"` }
PagingVo 结构体
type ResultCode ¶
type ResultCode struct { // 是否成功 Msg string `json:"msg,omitempty" xml:"msg,omitempty"` // code Code int64 `json:"code,omitempty" xml:"code,omitempty"` }
ResultCode 结构体
func GetResultCode ¶ added in v1.3.4
func GetResultCode() *ResultCode
GetResultCode() 从对象池中获取ResultCode
type XiamiContentArtistInfoQueryAPIRequest ¶ added in v1.2.0
type XiamiContentArtistInfoQueryAPIRequest struct { model.Params // contains filtered or unexported fields }
XiamiContentArtistInfoQueryAPIRequest 搜索艺人列表 API请求 xiami.content.artist.info.query
根据查询条件,搜索相关艺人列表
func GetXiamiContentArtistInfoQueryAPIRequest ¶ added in v1.3.4
func GetXiamiContentArtistInfoQueryAPIRequest() *XiamiContentArtistInfoQueryAPIRequest
GetXiamiContentArtistInfoQueryRequest 从 sync.Pool 获取 XiamiContentArtistInfoQueryAPIRequest
func NewXiamiContentArtistInfoQueryRequest ¶
func NewXiamiContentArtistInfoQueryRequest() *XiamiContentArtistInfoQueryAPIRequest
NewXiamiContentArtistInfoQueryRequest 初始化XiamiContentArtistInfoQueryAPIRequest对象
func (XiamiContentArtistInfoQueryAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r XiamiContentArtistInfoQueryAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (XiamiContentArtistInfoQueryAPIRequest) GetApiParams ¶ added in v1.2.0
func (r XiamiContentArtistInfoQueryAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (XiamiContentArtistInfoQueryAPIRequest) GetGender ¶ added in v1.2.0
func (r XiamiContentArtistInfoQueryAPIRequest) GetGender() int64
GetGender Gender Getter
func (XiamiContentArtistInfoQueryAPIRequest) GetGenre ¶ added in v1.2.0
func (r XiamiContentArtistInfoQueryAPIRequest) GetGenre() int64
GetGenre Genre Getter
func (XiamiContentArtistInfoQueryAPIRequest) GetLanguage ¶ added in v1.2.0
func (r XiamiContentArtistInfoQueryAPIRequest) GetLanguage() int64
GetLanguage Language Getter
func (XiamiContentArtistInfoQueryAPIRequest) GetPageReq ¶ added in v1.2.0
func (r XiamiContentArtistInfoQueryAPIRequest) GetPageReq() *PagingVo
GetPageReq PageReq Getter
func (XiamiContentArtistInfoQueryAPIRequest) GetRawParams ¶ added in v1.2.8
func (r XiamiContentArtistInfoQueryAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*XiamiContentArtistInfoQueryAPIRequest) Reset ¶ added in v1.3.4
func (r *XiamiContentArtistInfoQueryAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*XiamiContentArtistInfoQueryAPIRequest) SetGender ¶ added in v1.2.0
func (r *XiamiContentArtistInfoQueryAPIRequest) SetGender(_gender int64) error
SetGender is Gender Setter 性别:1男性 2女性 3乐队
func (*XiamiContentArtistInfoQueryAPIRequest) SetGenre ¶ added in v1.2.0
func (r *XiamiContentArtistInfoQueryAPIRequest) SetGenre(_genre int64) error
SetGenre is Genre Setter 流派: 1嘻哈(说唱),2流行,3摇滚,4布鲁斯,5爵士,6雷鬼,7世界音乐,8拉丁,9电子,10节奏布鲁斯,11实验,12轻音乐,13新世纪,14舞台 / 银幕 / 娱乐 * 15唱作人,16民谣,18金属,19中国特色,20乡村,21古典,22儿童,23有声书,24动漫,25朋克
func (*XiamiContentArtistInfoQueryAPIRequest) SetLanguage ¶ added in v1.2.0
func (r *XiamiContentArtistInfoQueryAPIRequest) SetLanguage(_language int64) error
SetLanguage is Language Setter 语种:1华语 2日本 3韩国 4欧美 5其他
func (*XiamiContentArtistInfoQueryAPIRequest) SetPageReq ¶ added in v1.2.0
func (r *XiamiContentArtistInfoQueryAPIRequest) SetPageReq(_pageReq *PagingVo) error
SetPageReq is PageReq Setter 分页信息
type XiamiContentArtistInfoQueryAPIResponse ¶
type XiamiContentArtistInfoQueryAPIResponse struct { model.CommonResponse XiamiContentArtistInfoQueryAPIResponseModel }
XiamiContentArtistInfoQueryAPIResponse 搜索艺人列表 API返回值 xiami.content.artist.info.query
根据查询条件,搜索相关艺人列表
func GetXiamiContentArtistInfoQueryAPIResponse ¶ added in v1.3.4
func GetXiamiContentArtistInfoQueryAPIResponse() *XiamiContentArtistInfoQueryAPIResponse
GetXiamiContentArtistInfoQueryAPIResponse 从 sync.Pool 获取 XiamiContentArtistInfoQueryAPIResponse
func (*XiamiContentArtistInfoQueryAPIResponse) Reset ¶ added in v1.3.4
func (m *XiamiContentArtistInfoQueryAPIResponse) Reset()
Reset 清空结构体
type XiamiContentArtistInfoQueryAPIResponseModel ¶ added in v1.2.0
type XiamiContentArtistInfoQueryAPIResponseModel struct { XMLName xml.Name `xml:"xiami_content_artist_info_query_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 返回的艺人分页信息 ArtistPage *Page `json:"artist_page,omitempty" xml:"artist_page,omitempty"` // 执行结果 ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"` }
XiamiContentArtistInfoQueryAPIResponseModel is 搜索艺人列表 成功返回结果
func (*XiamiContentArtistInfoQueryAPIResponseModel) Reset ¶ added in v1.3.4
func (m *XiamiContentArtistInfoQueryAPIResponseModel) Reset()
Reset 清空结构体