wenyuvideo

package
v1.3.2 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 wenyuvideo 包含数娱媒资输出相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PersonDetailRbo

type PersonDetailRbo struct {
	// 人物类型:unknow,director,starring,performer,singer,lyricswriter,composer,screenwriter,producer,host,voice,      * executive_producer,teacher,original, interview,paike
	PersonTypeList []string `json:"person_type_list,omitempty" xml:"person_type_list>string,omitempty"`
	// 人物国籍
	NationalityList []string `json:"nationality_list,omitempty" xml:"nationality_list>string,omitempty"`
	// 职业
	OccupationList []string `json:"occupation_list,omitempty" xml:"occupation_list>string,omitempty"`
	// 人物性质:牛人,拍客,网络红人
	PersonKindList []string `json:"person_kind_list,omitempty" xml:"person_kind_list>string,omitempty"`
	// 组合成员,如果人物是一个组合,则允许设置下面的成员,人员也是一人物记录。输出格式[{'id':20349,'name':'张宇凡'},{'id':35994,'name':'袁泉'}]
	MemberList []string `json:"member_list,omitempty" xml:"member_list>string,omitempty"`
	// 人物相关视频推荐
	RefShows []ShowBaseRbo `json:"ref_shows,omitempty" xml:"ref_shows>show_base_rbo,omitempty"`
	// 人物相关人物推荐
	RefPersons []PersonRbo `json:"ref_persons,omitempty" xml:"ref_persons>person_rbo,omitempty"`
	// 人物名字
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 图片
	ThumbUrl string `json:"thumb_url,omitempty" xml:"thumb_url,omitempty"`
	// 300*300人物头像
	ThumbUrlLg string `json:"thumb_url_lg,omitempty" xml:"thumb_url_lg,omitempty"`
	// 人物海报
	PosterUrl string `json:"poster_url,omitempty" xml:"poster_url,omitempty"`
	// 人物写真
	PosterUrlH string `json:"poster_url_h,omitempty" xml:"poster_url_h,omitempty"`
	// 简介
	PersonDesc string `json:"person_desc,omitempty" xml:"person_desc,omitempty"`
	// 性别 U(nknow):未知 M(ale):男 F(emale):女 G(roup):组合
	Gender string `json:"gender,omitempty" xml:"gender,omitempty"`
	// 生日
	Birthday string `json:"birthday,omitempty" xml:"birthday,omitempty"`
	// 忌日
	Deathday string `json:"deathday,omitempty" xml:"deathday,omitempty"`
	// 出生地
	Homeplace string `json:"homeplace,omitempty" xml:"homeplace,omitempty"`
	// 身高,单位cm
	Height string `json:"height,omitempty" xml:"height,omitempty"`
	// 血型 A、B、AB、O
	BloodType string `json:"blood_type,omitempty" xml:"blood_type,omitempty"`
	// 星座
	Constellation string `json:"constellation,omitempty" xml:"constellation,omitempty"`
	// 主键(优酷人物ID)
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

PersonDetailRbo 结构体

type PersonDo

type PersonDo struct {
	// 人物名字
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 图片
	ThumbUrl string `json:"thumb_url,omitempty" xml:"thumb_url,omitempty"`
	// 300*300人物头像
	ThumbUrlLg string `json:"thumb_url_lg,omitempty" xml:"thumb_url_lg,omitempty"`
	// 人物海报
	PosterUrl string `json:"poster_url,omitempty" xml:"poster_url,omitempty"`
	// 人物写真
	PosterUrlH string `json:"poster_url_h,omitempty" xml:"poster_url_h,omitempty"`
	// 简介
	PersonDesc string `json:"person_desc,omitempty" xml:"person_desc,omitempty"`
	// 人物ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

PersonDo 结构体

type PersonRbo

type PersonRbo struct {
	// 姓名
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 人物头像
	ThumbUrl string `json:"thumb_url,omitempty" xml:"thumb_url,omitempty"`
	// 300*300人物头像
	ThumbUrlLg string `json:"thumb_url_lg,omitempty" xml:"thumb_url_lg,omitempty"`
	// 人物海报
	PosterUrl string `json:"poster_url,omitempty" xml:"poster_url,omitempty"`
	// 演职人员工作
	Job string `json:"job,omitempty" xml:"job,omitempty"`
	// taotv媒资的演职人员id
	PersonId int64 `json:"person_id,omitempty" xml:"person_id,omitempty"`
}

PersonRbo 结构体

type Segments

type Segments struct {
	// 开始时间点
	From int64 `json:"from,omitempty" xml:"from,omitempty"`
	// 结束时间点
	To int64 `json:"to,omitempty" xml:"to,omitempty"`
}

Segments 结构体

type ShowBaseRbo

type ShowBaseRbo struct {
	// 节目名称
	ShowName string `json:"show_name,omitempty" xml:"show_name,omitempty"`
	// 节目默认图片url
	ShowThumbUrl string `json:"show_thumb_url,omitempty" xml:"show_thumb_url,omitempty"`
	// 节目竖版图片url
	ShowVthumbUrl string `json:"show_vthumb_url,omitempty" xml:"show_vthumb_url,omitempty"`
	// 评分
	Score string `json:"score,omitempty" xml:"score,omitempty"`
	// 角标
	Mark string `json:"mark,omitempty" xml:"mark,omitempty"`
	// 发行日期
	ReleaseDate string `json:"release_date,omitempty" xml:"release_date,omitempty"`
	// tag标记
	ViewTag string `json:"view_tag,omitempty" xml:"view_tag,omitempty"`
	// 影视信息在列表搜索等未知的重要提示
	Tips string `json:"tips,omitempty" xml:"tips,omitempty"`
	// 节目子标题
	ShowSubtitle string `json:"show_subtitle,omitempty" xml:"show_subtitle,omitempty"`
	// 展示类型
	ShowType int64 `json:"show_type,omitempty" xml:"show_type,omitempty"`
	// 节目主分类
	ShowCategory int64 `json:"show_category,omitempty" xml:"show_category,omitempty"`
	// 是否动态更新集数
	IsDynTotal int64 `json:"is_dyn_total,omitempty" xml:"is_dyn_total,omitempty"`
	// 最新一集
	LastSequence int64 `json:"last_sequence,omitempty" xml:"last_sequence,omitempty"`
	// 正片总集数
	EpisodeTotal int64 `json:"episode_total,omitempty" xml:"episode_total,omitempty"`
	// 老媒资节目ID(整体兼容使用,不建议客户端使用)
	ProgramId int64 `json:"program_id,omitempty" xml:"program_id,omitempty"`
	// 最后一个正片集数
	EpisodeLast int64 `json:"episode_last,omitempty" xml:"episode_last,omitempty"`
	// 是否预告片
	Prevue bool `json:"prevue,omitempty" xml:"prevue,omitempty"`
}

ShowBaseRbo 结构体

type YoukuwenyuvideopersiongetAPIRequest added in v1.3.1

type YoukuwenyuvideopersiongetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

YoukuwenyuvideopersiongetAPIRequest 根据优酷人物ID获取人物详情页,包含相关影视和相关人物 API请求 youku.wenyuvideo.persion.get

根据优酷人物ID获取人物详情页,包含相关影视和相关人物

func NewYoukuwenyuvideopersiongetRequest added in v1.3.1

func NewYoukuwenyuvideopersiongetRequest() *YoukuwenyuvideopersiongetAPIRequest

NewYoukuwenyuvideopersiongetRequest 初始化YoukuwenyuvideopersiongetAPIRequest对象

func (YoukuwenyuvideopersiongetAPIRequest) GetApiMethodName added in v1.3.1

func (r YoukuwenyuvideopersiongetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (YoukuwenyuvideopersiongetAPIRequest) GetApiParams added in v1.3.1

func (r YoukuwenyuvideopersiongetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (YoukuwenyuvideopersiongetAPIRequest) GetPersonId added in v1.3.1

GetPersonId PersonId Getter

func (YoukuwenyuvideopersiongetAPIRequest) GetRawParams added in v1.3.1

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

func (YoukuwenyuvideopersiongetAPIRequest) GetSystemInfo added in v1.3.1

func (r YoukuwenyuvideopersiongetAPIRequest) GetSystemInfo() string

GetSystemInfo SystemInfo Getter

func (*YoukuwenyuvideopersiongetAPIRequest) SetPersonId added in v1.3.1

func (r *YoukuwenyuvideopersiongetAPIRequest) SetPersonId(_personId int64) error

SetPersonId is PersonId Setter 人物ID

func (*YoukuwenyuvideopersiongetAPIRequest) SetSystemInfo added in v1.3.1

func (r *YoukuwenyuvideopersiongetAPIRequest) SetSystemInfo(_systemInfo string) error

SetSystemInfo is SystemInfo Setter 设备信息

type YoukuwenyuvideopersiongetAPIResponse added in v1.3.1

type YoukuwenyuvideopersiongetAPIResponse struct {
	model.CommonResponse
	YoukuwenyuvideopersiongetAPIResponseModel
}

YoukuwenyuvideopersiongetAPIResponse 根据优酷人物ID获取人物详情页,包含相关影视和相关人物 API返回值 youku.wenyuvideo.persion.get

根据优酷人物ID获取人物详情页,包含相关影视和相关人物

type YoukuwenyuvideopersiongetAPIResponseModel added in v1.3.1

type YoukuwenyuvideopersiongetAPIResponseModel struct {
	XMLName xml.Name `xml:"youku_wenyuvideo_persion_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *YoukuwenyuvideopersiongetResult `json:"result,omitempty" xml:"result,omitempty"`
}

YoukuwenyuvideopersiongetAPIResponseModel is 根据优酷人物ID获取人物详情页,包含相关影视和相关人物 成功返回结果

type YoukuwenyuvideopersiongetResult added in v1.3.1

type YoukuwenyuvideopersiongetResult struct {
	// 业务扩展数据
	BizExtMap string `json:"biz_ext_map,omitempty" xml:"biz_ext_map,omitempty"`
	// 错误码,业务错误码
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// 业务错误提示
	MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
	// 人物详情信息,包含相关影视和相关人物
	Model *PersonDetailRbo `json:"model,omitempty" xml:"model,omitempty"`
	// HTTP请求状态
	HttpStatusCode int64 `json:"http_status_code,omitempty" xml:"http_status_code,omitempty"`
	// 接口调用是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

YoukuwenyuvideopersiongetResult 结构体

type YoukuwenyuvideopersionsearchAPIRequest added in v1.3.1

type YoukuwenyuvideopersionsearchAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

YoukuwenyuvideopersionsearchAPIRequest 根据人物名称查询人物列表 API请求 youku.wenyuvideo.persion.search

根据人物名称查询人物列表

func NewYoukuwenyuvideopersionsearchRequest added in v1.3.1

func NewYoukuwenyuvideopersionsearchRequest() *YoukuwenyuvideopersionsearchAPIRequest

NewYoukuwenyuvideopersionsearchRequest 初始化YoukuwenyuvideopersionsearchAPIRequest对象

func (YoukuwenyuvideopersionsearchAPIRequest) GetApiMethodName added in v1.3.1

func (r YoukuwenyuvideopersionsearchAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (YoukuwenyuvideopersionsearchAPIRequest) GetApiParams added in v1.3.1

func (r YoukuwenyuvideopersionsearchAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (YoukuwenyuvideopersionsearchAPIRequest) GetPersonName added in v1.3.1

GetPersonName PersonName Getter

func (YoukuwenyuvideopersionsearchAPIRequest) GetRawParams added in v1.3.1

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

func (*YoukuwenyuvideopersionsearchAPIRequest) SetPersonName added in v1.3.1

func (r *YoukuwenyuvideopersionsearchAPIRequest) SetPersonName(_personName string) error

SetPersonName is PersonName Setter 人物名字,搜索规则是完全匹配,即只返回同名人物列表

type YoukuwenyuvideopersionsearchAPIResponse added in v1.3.1

type YoukuwenyuvideopersionsearchAPIResponse struct {
	model.CommonResponse
	YoukuwenyuvideopersionsearchAPIResponseModel
}

YoukuwenyuvideopersionsearchAPIResponse 根据人物名称查询人物列表 API返回值 youku.wenyuvideo.persion.search

根据人物名称查询人物列表

type YoukuwenyuvideopersionsearchAPIResponseModel added in v1.3.1

type YoukuwenyuvideopersionsearchAPIResponseModel struct {
	XMLName xml.Name `xml:"youku_wenyuvideo_persion_search_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *YoukuwenyuvideopersionsearchResult `json:"result,omitempty" xml:"result,omitempty"`
}

YoukuwenyuvideopersionsearchAPIResponseModel is 根据人物名称查询人物列表 成功返回结果

type YoukuwenyuvideopersionsearchResult added in v1.3.1

type YoukuwenyuvideopersionsearchResult struct {
	// 业务扩展数据
	BizExtMap string `json:"biz_ext_map,omitempty" xml:"biz_ext_map,omitempty"`
	// 业务错误码
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// 业务错误提示
	MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
	// 人物列表
	Model *PersonDo `json:"model,omitempty" xml:"model,omitempty"`
	// HTTP请求状态
	HttpStatusCode int64 `json:"http_status_code,omitempty" xml:"http_status_code,omitempty"`
	// 接口调用是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

YoukuwenyuvideopersionsearchResult 结构体

type YoukuwenyuvideoseetagetAPIRequest added in v1.3.1

type YoukuwenyuvideoseetagetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

YoukuwenyuvideoseetagetAPIRequest 只看TA API请求 youku.wenyuvideo.seeta.get

只看Ta对外输出

func NewYoukuwenyuvideoseetagetRequest added in v1.3.1

func NewYoukuwenyuvideoseetagetRequest() *YoukuwenyuvideoseetagetAPIRequest

NewYoukuwenyuvideoseetagetRequest 初始化YoukuwenyuvideoseetagetAPIRequest对象

func (YoukuwenyuvideoseetagetAPIRequest) GetApiMethodName added in v1.3.1

func (r YoukuwenyuvideoseetagetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (YoukuwenyuvideoseetagetAPIRequest) GetApiParams added in v1.3.1

func (r YoukuwenyuvideoseetagetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (YoukuwenyuvideoseetagetAPIRequest) GetRawParams added in v1.3.1

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

func (YoukuwenyuvideoseetagetAPIRequest) GetVideoStrId added in v1.3.1

func (r YoukuwenyuvideoseetagetAPIRequest) GetVideoStrId() string

GetVideoStrId VideoStrId Getter

func (*YoukuwenyuvideoseetagetAPIRequest) SetVideoStrId added in v1.3.1

func (r *YoukuwenyuvideoseetagetAPIRequest) SetVideoStrId(_videoStrId string) error

SetVideoStrId is VideoStrId Setter 视频字符串形式id

type YoukuwenyuvideoseetagetAPIResponse added in v1.3.1

type YoukuwenyuvideoseetagetAPIResponse struct {
	model.CommonResponse
	YoukuwenyuvideoseetagetAPIResponseModel
}

YoukuwenyuvideoseetagetAPIResponse 只看TA API返回值 youku.wenyuvideo.seeta.get

只看Ta对外输出

type YoukuwenyuvideoseetagetAPIResponseModel added in v1.3.1

type YoukuwenyuvideoseetagetAPIResponseModel struct {
	XMLName xml.Name `xml:"youku_wenyuvideo_seeta_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *YoukuwenyuvideoseetagetResult `json:"result,omitempty" xml:"result,omitempty"`
}

YoukuwenyuvideoseetagetAPIResponseModel is 只看TA 成功返回结果

type YoukuwenyuvideoseetagetModel added in v1.3.1

type YoukuwenyuvideoseetagetModel struct {
	// logo数组
	Logos []string `json:"logos,omitempty" xml:"logos>string,omitempty"`
	// 名字数组
	Names []string `json:"names,omitempty" xml:"names>string,omitempty"`
	// 片段数组
	Segments []Segments `json:"segments,omitempty" xml:"segments>segments,omitempty"`
}

YoukuwenyuvideoseetagetModel 结构体

type YoukuwenyuvideoseetagetResult added in v1.3.1

type YoukuwenyuvideoseetagetResult struct {
	// 返回数据
	Values []YoukuwenyuvideoseetagetModel `json:"values,omitempty" xml:"values>youkuwenyuvideoseetaget_model,omitempty"`
	// msgCode
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// msgInfo
	MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
	// 结果代码
	HttpStatusCode int64 `json:"http_status_code,omitempty" xml:"http_status_code,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

YoukuwenyuvideoseetagetResult 结构体

Jump to

Keyboard shortcuts

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