xiamiatrist

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package xiamiatrist 包含曲库开放平台艺人API相关结构体

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

Index

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 ReleasePage added in v1.3.4

func ReleasePage(v *Page)

ReleasePage 释放Page

func ReleasePaging added in v1.3.4

func ReleasePaging(v *Paging)

ReleasePaging 释放Paging

func ReleasePagingVo added in v1.3.4

func ReleasePagingVo(v *PagingVo)

ReleasePagingVo 释放PagingVo

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 结构体

func GetArtistDto added in v1.3.4

func GetArtistDto() *ArtistDto

GetArtistDto() 从对象池中获取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 结构体

func GetPage added in v1.3.4

func GetPage() *Page

GetPage() 从对象池中获取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 结构体

func GetPaging added in v1.3.4

func GetPaging() *Paging

GetPaging() 从对象池中获取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 结构体

func GetPagingVo added in v1.3.4

func GetPagingVo() *PagingVo

GetPagingVo() 从对象池中获取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

GetGender Gender Getter

func (XiamiContentArtistInfoQueryAPIRequest) GetGenre added in v1.2.0

GetGenre Genre Getter

func (XiamiContentArtistInfoQueryAPIRequest) GetLanguage added in v1.2.0

GetLanguage Language Getter

func (XiamiContentArtistInfoQueryAPIRequest) GetPageReq added in v1.2.0

GetPageReq PageReq Getter

func (XiamiContentArtistInfoQueryAPIRequest) GetRawParams added in v1.2.8

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

func (*XiamiContentArtistInfoQueryAPIRequest) Reset added in v1.3.4

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

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

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

Reset 清空结构体

Jump to

Keyboard shortcuts

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