xiamiatrist

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 xiamiatrist 包含曲库开放平台艺人API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

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 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) 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

根据查询条件,搜索相关艺人列表

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 搜索艺人列表 成功返回结果

Jump to

Keyboard shortcuts

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