taotv

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

虚拟院线API model

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CarouselChannelRbo

type CarouselChannelRbo struct {
	// 频道固定的编号
	SerialNumber int64 `json:"serial_number,omitempty" xml:"serial_number,omitempty"`
	// 频道所有的视频列表
	VideoList []Videolist `json:"video_list,omitempty" xml:"video_list>videolist,omitempty"`
	// 频道当前播放视频
	CurrentVideo *CarouselCurrentPlayRbo `json:"current_video,omitempty" xml:"current_video,omitempty"`
	// 频道描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 牌照方
	Bcp int64 `json:"bcp,omitempty" xml:"bcp,omitempty"`
	// 频道图标
	Pic string `json:"pic,omitempty" xml:"pic,omitempty"`
	// 频道名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 频道ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

CarouselChannelRbo

type CarouselCurrentPlayRbo

type CarouselCurrentPlayRbo struct {
	// 当前轮播视频信息
	Video *CarouselPlaylistVideoRbo `json:"video,omitempty" xml:"video,omitempty"`
	// 当前视频正在播放的时间点(单位秒)
	Point int64 `json:"point,omitempty" xml:"point,omitempty"`
}

CarouselCurrentPlayRbo

type CarouselPlaylistVideoRbo

type CarouselPlaylistVideoRbo struct {
	// 视频ID信息
	VideoId string `json:"video_id,omitempty" xml:"video_id,omitempty"`
	// 视频的来源类型,来源这个视频所在节目单的视频来源类型
	VideoExtType int64 `json:"video_ext_type,omitempty" xml:"video_ext_type,omitempty"`
	// 当前视频的播单ID
	PlayListId int64 `json:"play_list_id,omitempty" xml:"play_list_id,omitempty"`
	// 当前视频的节目ID
	ProgramId int64 `json:"program_id,omitempty" xml:"program_id,omitempty"`
	// 当前视频的排序
	Sort int64 `json:"sort,omitempty" xml:"sort,omitempty"`
	// 视频时长(单位秒)
	Duration int64 `json:"duration,omitempty" xml:"duration,omitempty"`
	// 视频名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 视频图片
	Pic string `json:"pic,omitempty" xml:"pic,omitempty"`
	// 主键ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

CarouselPlaylistVideoRbo

type Channels

type Channels struct {
	// 频道ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 频道固定的编号
	SerialNumber int64 `json:"serial_number,omitempty" xml:"serial_number,omitempty"`
	// 频道所有的视频列表
	VideoList []Videolist `json:"video_list,omitempty" xml:"video_list>videolist,omitempty"`
	// 频道当前播放视频
	CurrentVideo *CarouselCurrentPlayRbo `json:"current_video,omitempty" xml:"current_video,omitempty"`
	// 频道描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 牌照方
	Bcp int64 `json:"bcp,omitempty" xml:"bcp,omitempty"`
	// 频道图标
	Pic string `json:"pic,omitempty" xml:"pic,omitempty"`
	// 频道名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
}

Channels

type PlayListNavRbo

type PlayListNavRbo struct {
	// 当前播单id
	CurPlayListId string `json:"cur_play_list_id,omitempty" xml:"cur_play_list_id,omitempty"`
	// 当前播单视频列表
	Videos []Videos `json:"videos,omitempty" xml:"videos>videos,omitempty"`
	// 播单列表
	PlayList []Playlist `json:"play_list,omitempty" xml:"play_list>playlist,omitempty"`
}

PlayListNavRbo

type Playlist

type Playlist struct {
	// 播单ID
	PlayListId int64 `json:"play_list_id,omitempty" xml:"play_list_id,omitempty"`
	// 播单名称
	PlayListName string `json:"play_list_name,omitempty" xml:"play_list_name,omitempty"`
	// 背景图
	BgPic string `json:"bg_pic,omitempty" xml:"bg_pic,omitempty"`
	// icon图标
	IconPic string `json:"icon_pic,omitempty" xml:"icon_pic,omitempty"`
	// 是否开启视频推荐功能:1开启0关闭(null或无字段均关闭)
	HasRecommend int64 `json:"has_recommend,omitempty" xml:"has_recommend,omitempty"`
}

Playlist

type TaobaoTaotvCarouselCategoryListAPIRequest added in v1.2.0

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

获取轮播分类列表 API请求 taobao.taotv.carousel.category.list

获取轮播分类列表

func NewTaobaoTaotvCarouselCategoryListRequest

func NewTaobaoTaotvCarouselCategoryListRequest() *TaobaoTaotvCarouselCategoryListAPIRequest

初始化TaobaoTaotvCarouselCategoryListAPIRequest对象

func (TaobaoTaotvCarouselCategoryListAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (TaobaoTaotvCarouselCategoryListAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTaotvCarouselCategoryListAPIRequest) GetSystemInfo added in v1.2.0

SystemInfo Getter

func (*TaobaoTaotvCarouselCategoryListAPIRequest) SetSystemInfo added in v1.2.0

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

SystemInfo Setter 设备信息

type TaobaoTaotvCarouselCategoryListAPIResponse

type TaobaoTaotvCarouselCategoryListAPIResponse struct {
	model.CommonResponse
	TaobaoTaotvCarouselCategoryListAPIResponseModel
}

获取轮播分类列表 API返回值 taobao.taotv.carousel.category.list

获取轮播分类列表

type TaobaoTaotvCarouselCategoryListAPIResponseModel added in v1.2.0

type TaobaoTaotvCarouselCategoryListAPIResponseModel struct {
	XMLName xml.Name `xml:"taotv_carousel_category_list_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// result
	Result *TaobaoTaotvCarouselCategoryListResult `json:"result,omitempty" xml:"result,omitempty"`
}

获取轮播分类列表 成功返回结果

type TaobaoTaotvCarouselCategoryListModel

type TaobaoTaotvCarouselCategoryListModel struct {
	// 分类排序
	Sort int64 `json:"sort,omitempty" xml:"sort,omitempty"`
	// 分类图片
	Pic string `json:"pic,omitempty" xml:"pic,omitempty"`
	// 分类牌照方
	Bcp int64 `json:"bcp,omitempty" xml:"bcp,omitempty"`
	// 分类名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 分类ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 分类频道列表
	ChannelList []Channels `json:"channel_list,omitempty" xml:"channel_list>channels,omitempty"`
}

TaobaoTaotvCarouselCategoryListModel

type TaobaoTaotvCarouselCategoryListResult

type TaobaoTaotvCarouselCategoryListResult struct {
	// 数据列表
	ModelList []TaobaoTaotvCarouselCategoryListModel `json:"model_list,omitempty" xml:"model_list>taobao_taotv_carousel_category_list_model,omitempty"`
	// httpStatusCode
	HttpStatusCode int64 `json:"http_status_code,omitempty" xml:"http_status_code,omitempty"`
	// msgCode
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// msgInfo
	MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
	// success
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoTaotvCarouselCategoryListResult

type TaobaoTaotvCarouselChannelAllAPIRequest added in v1.2.0

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

获取所有频道列表 API请求 taobao.taotv.carousel.channel.all

获取所有频道列表,按照序号升序

func NewTaobaoTaotvCarouselChannelAllRequest

func NewTaobaoTaotvCarouselChannelAllRequest() *TaobaoTaotvCarouselChannelAllAPIRequest

初始化TaobaoTaotvCarouselChannelAllAPIRequest对象

func (TaobaoTaotvCarouselChannelAllAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTaotvCarouselChannelAllAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTaotvCarouselChannelAllAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTaotvCarouselChannelAllAPIRequest) GetSystemInfo added in v1.2.0

SystemInfo Getter

func (*TaobaoTaotvCarouselChannelAllAPIRequest) SetSystemInfo added in v1.2.0

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

SystemInfo Setter 系统信息

type TaobaoTaotvCarouselChannelAllAPIResponse

type TaobaoTaotvCarouselChannelAllAPIResponse struct {
	model.CommonResponse
	TaobaoTaotvCarouselChannelAllAPIResponseModel
}

获取所有频道列表 API返回值 taobao.taotv.carousel.channel.all

获取所有频道列表,按照序号升序

type TaobaoTaotvCarouselChannelAllAPIResponseModel added in v1.2.0

type TaobaoTaotvCarouselChannelAllAPIResponseModel struct {
	XMLName xml.Name `xml:"taotv_carousel_channel_all_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// result
	Result *TaobaoTaotvCarouselChannelAllResult `json:"result,omitempty" xml:"result,omitempty"`
}

获取所有频道列表 成功返回结果

type TaobaoTaotvCarouselChannelAllModel

type TaobaoTaotvCarouselChannelAllModel struct {
	// 频道固定的编号
	SerialNumber int64 `json:"serial_number,omitempty" xml:"serial_number,omitempty"`
	// 频道所有的视频列表
	VideoList []Videolist `json:"video_list,omitempty" xml:"video_list>videolist,omitempty"`
	// 频道当前播放视频
	CurrentVideo *CarouselCurrentPlayRbo `json:"current_video,omitempty" xml:"current_video,omitempty"`
	// 频道描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 牌照方
	Bcp int64 `json:"bcp,omitempty" xml:"bcp,omitempty"`
	// 频道图标
	Pic string `json:"pic,omitempty" xml:"pic,omitempty"`
	// 频道名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 频道ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 切换时间点
	SwitchTime int64 `json:"switch_time,omitempty" xml:"switch_time,omitempty"`
}

TaobaoTaotvCarouselChannelAllModel

type TaobaoTaotvCarouselChannelAllResult

type TaobaoTaotvCarouselChannelAllResult struct {
	// 频道列表
	ModelList []TaobaoTaotvCarouselChannelAllModel `json:"model_list,omitempty" xml:"model_list>taobao_taotv_carousel_channel_all_model,omitempty"`
	// httpStatusCode
	HttpStatusCode int64 `json:"http_status_code,omitempty" xml:"http_status_code,omitempty"`
	// msgCode
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// msgInfo
	MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
	// success
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoTaotvCarouselChannelAllResult

type TaobaoTaotvCarouselPlaylistGetAPIRequest added in v1.2.0

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

根据频道ID获取频道下节目单以及当前播放 API请求 taobao.taotv.carousel.playlist.get

根据频道ID获取频道下节目单以及当前播放,包括所有视频源的视频

func NewTaobaoTaotvCarouselPlaylistGetRequest

func NewTaobaoTaotvCarouselPlaylistGetRequest() *TaobaoTaotvCarouselPlaylistGetAPIRequest

初始化TaobaoTaotvCarouselPlaylistGetAPIRequest对象

func (TaobaoTaotvCarouselPlaylistGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTaotvCarouselPlaylistGetAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTaotvCarouselPlaylistGetAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTaotvCarouselPlaylistGetAPIRequest) GetChannelId added in v1.2.0

ChannelId Getter

func (TaobaoTaotvCarouselPlaylistGetAPIRequest) GetSystemInfo added in v1.2.0

SystemInfo Getter

func (*TaobaoTaotvCarouselPlaylistGetAPIRequest) SetChannelId added in v1.2.0

func (r *TaobaoTaotvCarouselPlaylistGetAPIRequest) SetChannelId(_channelId int64) error

ChannelId Setter 频道ID

func (*TaobaoTaotvCarouselPlaylistGetAPIRequest) SetSystemInfo added in v1.2.0

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

SystemInfo Setter 设备信息

type TaobaoTaotvCarouselPlaylistGetAPIResponse

type TaobaoTaotvCarouselPlaylistGetAPIResponse struct {
	model.CommonResponse
	TaobaoTaotvCarouselPlaylistGetAPIResponseModel
}

根据频道ID获取频道下节目单以及当前播放 API返回值 taobao.taotv.carousel.playlist.get

根据频道ID获取频道下节目单以及当前播放,包括所有视频源的视频

type TaobaoTaotvCarouselPlaylistGetAPIResponseModel added in v1.2.0

type TaobaoTaotvCarouselPlaylistGetAPIResponseModel struct {
	XMLName xml.Name `xml:"taotv_carousel_playlist_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// result
	Result *TaobaoTaotvCarouselPlaylistGetResult `json:"result,omitempty" xml:"result,omitempty"`
}

根据频道ID获取频道下节目单以及当前播放 成功返回结果

type TaobaoTaotvCarouselPlaylistGetResult

type TaobaoTaotvCarouselPlaylistGetResult struct {
	// 返回数据
	Model *CarouselChannelRbo `json:"model,omitempty" xml:"model,omitempty"`
	// httpStatusCode
	HttpStatusCode int64 `json:"http_status_code,omitempty" xml:"http_status_code,omitempty"`
	// msgCode
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// msgInfo
	MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
	// success
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoTaotvCarouselPlaylistGetResult

type TaobaoTaotvVideoPlaylistAllAPIRequest added in v1.2.0

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

获取播单列表 API请求 taobao.taotv.video.playlist.all

根据牌照和视频源等获取播单列表

func NewTaobaoTaotvVideoPlaylistAllRequest

func NewTaobaoTaotvVideoPlaylistAllRequest() *TaobaoTaotvVideoPlaylistAllAPIRequest

初始化TaobaoTaotvVideoPlaylistAllAPIRequest对象

func (TaobaoTaotvVideoPlaylistAllAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTaotvVideoPlaylistAllAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTaotvVideoPlaylistAllAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTaotvVideoPlaylistAllAPIRequest) GetSystemInfo added in v1.2.0

SystemInfo Getter

func (*TaobaoTaotvVideoPlaylistAllAPIRequest) SetSystemInfo added in v1.2.0

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

SystemInfo Setter 系统信息

type TaobaoTaotvVideoPlaylistAllAPIResponse

type TaobaoTaotvVideoPlaylistAllAPIResponse struct {
	model.CommonResponse
	TaobaoTaotvVideoPlaylistAllAPIResponseModel
}

获取播单列表 API返回值 taobao.taotv.video.playlist.all

根据牌照和视频源等获取播单列表

type TaobaoTaotvVideoPlaylistAllAPIResponseModel added in v1.2.0

type TaobaoTaotvVideoPlaylistAllAPIResponseModel struct {
	XMLName xml.Name `xml:"taotv_video_playlist_all_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// result
	Result *TaobaoTaotvVideoPlaylistAllResult `json:"result,omitempty" xml:"result,omitempty"`
}

获取播单列表 成功返回结果

type TaobaoTaotvVideoPlaylistAllModel

type TaobaoTaotvVideoPlaylistAllModel struct {
	// playListId
	PlayListId int64 `json:"play_list_id,omitempty" xml:"play_list_id,omitempty"`
	// playListName
	PlayListName string `json:"play_list_name,omitempty" xml:"play_list_name,omitempty"`
	// bgPic
	BgPic string `json:"bg_pic,omitempty" xml:"bg_pic,omitempty"`
	// modifyTime
	ModifyTime string `json:"modify_time,omitempty" xml:"modify_time,omitempty"`
	// createTime
	CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"`
}

TaobaoTaotvVideoPlaylistAllModel

type TaobaoTaotvVideoPlaylistAllResult

type TaobaoTaotvVideoPlaylistAllResult struct {
	// model
	ModelList []TaobaoTaotvVideoPlaylistAllModel `json:"model_list,omitempty" xml:"model_list>taobao_taotv_video_playlist_all_model,omitempty"`
	// httpStatusCode
	HttpStatusCode int64 `json:"http_status_code,omitempty" xml:"http_status_code,omitempty"`
	// msgCode
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// msgInfo
	MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
	// success
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoTaotvVideoPlaylistAllResult

type TaobaoTaotvVideoPlaylistGetAPIRequest added in v1.2.0

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

根据频道ID获取频道下节目单以及当前播放 API请求 taobao.taotv.video.playlist.get

根据频道ID获取频道下节目单以及当前播放

func NewTaobaoTaotvVideoPlaylistGetRequest

func NewTaobaoTaotvVideoPlaylistGetRequest() *TaobaoTaotvVideoPlaylistGetAPIRequest

初始化TaobaoTaotvVideoPlaylistGetAPIRequest对象

func (TaobaoTaotvVideoPlaylistGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTaotvVideoPlaylistGetAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTaotvVideoPlaylistGetAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTaotvVideoPlaylistGetAPIRequest) GetPlayListId added in v1.2.0

func (r TaobaoTaotvVideoPlaylistGetAPIRequest) GetPlayListId() int64

PlayListId Getter

func (TaobaoTaotvVideoPlaylistGetAPIRequest) GetSystemInfo added in v1.2.0

SystemInfo Getter

func (*TaobaoTaotvVideoPlaylistGetAPIRequest) SetPlayListId added in v1.2.0

func (r *TaobaoTaotvVideoPlaylistGetAPIRequest) SetPlayListId(_playListId int64) error

PlayListId Setter 播单id

func (*TaobaoTaotvVideoPlaylistGetAPIRequest) SetSystemInfo added in v1.2.0

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

SystemInfo Setter 系统信息

type TaobaoTaotvVideoPlaylistGetAPIResponse

type TaobaoTaotvVideoPlaylistGetAPIResponse struct {
	model.CommonResponse
	TaobaoTaotvVideoPlaylistGetAPIResponseModel
}

根据频道ID获取频道下节目单以及当前播放 API返回值 taobao.taotv.video.playlist.get

根据频道ID获取频道下节目单以及当前播放

type TaobaoTaotvVideoPlaylistGetAPIResponseModel added in v1.2.0

type TaobaoTaotvVideoPlaylistGetAPIResponseModel struct {
	XMLName xml.Name `xml:"taotv_video_playlist_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// result
	Result *TaobaoTaotvVideoPlaylistGetResult `json:"result,omitempty" xml:"result,omitempty"`
}

根据频道ID获取频道下节目单以及当前播放 成功返回结果

type TaobaoTaotvVideoPlaylistGetModel

type TaobaoTaotvVideoPlaylistGetModel struct {
	// 视频图片
	PicUrl string `json:"pic_url,omitempty" xml:"pic_url,omitempty"`
	// 视频ID
	VideoId string `json:"video_id,omitempty" xml:"video_id,omitempty"`
	// 视频来源
	From int64 `json:"from,omitempty" xml:"from,omitempty"`
	// 视频标题
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 时长,单位秒
	Seconds string `json:"seconds,omitempty" xml:"seconds,omitempty"`
	// ott测更新时间
	OttUpdateTime string `json:"ott_update_time,omitempty" xml:"ott_update_time,omitempty"`
}

TaobaoTaotvVideoPlaylistGetModel

type TaobaoTaotvVideoPlaylistGetResult

type TaobaoTaotvVideoPlaylistGetResult struct {
	// 数据列表
	ModelList []TaobaoTaotvVideoPlaylistGetModel `json:"model_list,omitempty" xml:"model_list>taobao_taotv_video_playlist_get_model,omitempty"`
	// httpStatusCode
	HttpStatusCode int64 `json:"http_status_code,omitempty" xml:"http_status_code,omitempty"`
	// msgCode
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// msgInfo
	MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
	// success
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoTaotvVideoPlaylistGetResult

type TaobaoTaotvVideoPlaylistOttnavGetAPIRequest added in v1.2.0

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

ott播单 API请求 taobao.taotv.video.playlist.ottnav.get

根据聚焦播单ID拿到下面播单视频,根据左侧播单ID列表批量拿到播单信息

func NewTaobaoTaotvVideoPlaylistOttnavGetRequest

func NewTaobaoTaotvVideoPlaylistOttnavGetRequest() *TaobaoTaotvVideoPlaylistOttnavGetAPIRequest

初始化TaobaoTaotvVideoPlaylistOttnavGetAPIRequest对象

func (TaobaoTaotvVideoPlaylistOttnavGetAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (TaobaoTaotvVideoPlaylistOttnavGetAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTaotvVideoPlaylistOttnavGetAPIRequest) GetPlayListId added in v1.2.0

PlayListId Getter

func (TaobaoTaotvVideoPlaylistOttnavGetAPIRequest) GetPlayListNav added in v1.2.0

PlayListNav Getter

func (TaobaoTaotvVideoPlaylistOttnavGetAPIRequest) GetSystemInfo added in v1.2.0

SystemInfo Getter

func (*TaobaoTaotvVideoPlaylistOttnavGetAPIRequest) SetPlayListId added in v1.2.0

func (r *TaobaoTaotvVideoPlaylistOttnavGetAPIRequest) SetPlayListId(_playListId int64) error

PlayListId Setter 播单id

func (*TaobaoTaotvVideoPlaylistOttnavGetAPIRequest) SetPlayListNav added in v1.2.0

func (r *TaobaoTaotvVideoPlaylistOttnavGetAPIRequest) SetPlayListNav(_playListNav []string) error

PlayListNav Setter 播单列表

func (*TaobaoTaotvVideoPlaylistOttnavGetAPIRequest) SetSystemInfo added in v1.2.0

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

SystemInfo Setter 系统信息

type TaobaoTaotvVideoPlaylistOttnavGetAPIResponse

type TaobaoTaotvVideoPlaylistOttnavGetAPIResponse struct {
	model.CommonResponse
	TaobaoTaotvVideoPlaylistOttnavGetAPIResponseModel
}

ott播单 API返回值 taobao.taotv.video.playlist.ottnav.get

根据聚焦播单ID拿到下面播单视频,根据左侧播单ID列表批量拿到播单信息

type TaobaoTaotvVideoPlaylistOttnavGetAPIResponseModel added in v1.2.0

type TaobaoTaotvVideoPlaylistOttnavGetAPIResponseModel struct {
	XMLName xml.Name `xml:"taotv_video_playlist_ottnav_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// result
	Result *TaobaoTaotvVideoPlaylistOttnavGetResult `json:"result,omitempty" xml:"result,omitempty"`
}

ott播单 成功返回结果

type TaobaoTaotvVideoPlaylistOttnavGetResult

type TaobaoTaotvVideoPlaylistOttnavGetResult struct {
	// model
	Model *PlayListNavRbo `json:"model,omitempty" xml:"model,omitempty"`
	// httpStatusCode
	HttpStatusCode int64 `json:"http_status_code,omitempty" xml:"http_status_code,omitempty"`
	// msgCode
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// msgInfo
	MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
	// success
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoTaotvVideoPlaylistOttnavGetResult

type TaobaoTaotvVideoPlaylistPageAPIRequest added in v1.2.0

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

分页获取所有播单 API请求 taobao.taotv.video.playlist.page

获取所有播单信息(分页)

func NewTaobaoTaotvVideoPlaylistPageRequest

func NewTaobaoTaotvVideoPlaylistPageRequest() *TaobaoTaotvVideoPlaylistPageAPIRequest

初始化TaobaoTaotvVideoPlaylistPageAPIRequest对象

func (TaobaoTaotvVideoPlaylistPageAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTaotvVideoPlaylistPageAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTaotvVideoPlaylistPageAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTaotvVideoPlaylistPageAPIRequest) GetPageNo added in v1.2.0

PageNo Getter

func (TaobaoTaotvVideoPlaylistPageAPIRequest) GetSystemInfo added in v1.2.0

SystemInfo Getter

func (*TaobaoTaotvVideoPlaylistPageAPIRequest) SetPageNo added in v1.2.0

func (r *TaobaoTaotvVideoPlaylistPageAPIRequest) SetPageNo(_pageNo int64) error

PageNo Setter 当前页(从1开始)

func (*TaobaoTaotvVideoPlaylistPageAPIRequest) SetSystemInfo added in v1.2.0

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

SystemInfo Setter 客户端信息

type TaobaoTaotvVideoPlaylistPageAPIResponse

type TaobaoTaotvVideoPlaylistPageAPIResponse struct {
	model.CommonResponse
	TaobaoTaotvVideoPlaylistPageAPIResponseModel
}

分页获取所有播单 API返回值 taobao.taotv.video.playlist.page

获取所有播单信息(分页)

type TaobaoTaotvVideoPlaylistPageAPIResponseModel added in v1.2.0

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

分页获取所有播单 成功返回结果

type TaobaoTaotvVideoPlaylistPageData

type TaobaoTaotvVideoPlaylistPageData struct {
	// 创建时间
	CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"`
	// 创建时间
	ModifyTime string `json:"modify_time,omitempty" xml:"modify_time,omitempty"`
	// 图片
	BgPic string `json:"bg_pic,omitempty" xml:"bg_pic,omitempty"`
	// 播单名称
	PlayListName string `json:"play_list_name,omitempty" xml:"play_list_name,omitempty"`
	// 播单id
	PlayListId int64 `json:"play_list_id,omitempty" xml:"play_list_id,omitempty"`
}

TaobaoTaotvVideoPlaylistPageData

type TaobaoTaotvVideoPlaylistPageModel

type TaobaoTaotvVideoPlaylistPageModel struct {
	// 当前页
	PageNo int64 `json:"page_no,omitempty" xml:"page_no,omitempty"`
	// 此接口默认每次获取100条
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 播单总数
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
	// 总共页数
	TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"`
	// 播单对象
	DataList []TaobaoTaotvVideoPlaylistPageData `json:"data_list,omitempty" xml:"data_list>taobao_taotv_video_playlist_page_data,omitempty"`
}

TaobaoTaotvVideoPlaylistPageModel

type TaobaoTaotvVideoPlaylistPageResult

type TaobaoTaotvVideoPlaylistPageResult struct {
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// msgInfo
	MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
	// msgCode
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// 状态码
	HttpStatusCode int64 `json:"http_status_code,omitempty" xml:"http_status_code,omitempty"`
	// 播单信息分页信息
	Model *TaobaoTaotvVideoPlaylistPageModel `json:"model,omitempty" xml:"model,omitempty"`
}

TaobaoTaotvVideoPlaylistPageResult

type V5BaseItemRbo

type V5BaseItemRbo struct {
	// 坑位ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 坑位标题
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 坑位子标题
	Subtitle string `json:"subtitle,omitempty" xml:"subtitle,omitempty"`
	// 中间图片
	CenterPic string `json:"center_pic,omitempty" xml:"center_pic,omitempty"`
	// 背景图片
	BgPic string `json:"bg_pic,omitempty" xml:"bg_pic,omitempty"`
	// 背景动图(高配)
	BgPicGif string `json:"bg_pic_gif,omitempty" xml:"bg_pic_gif,omitempty"`
	// 跳转行为
	BizType string `json:"biz_type,omitempty" xml:"biz_type,omitempty"`
	// 扩展字段
	Extra string `json:"extra,omitempty" xml:"extra,omitempty"`
	// 未解析的扩展字段
	ExtraStr string `json:"extra_str,omitempty" xml:"extra_str,omitempty"`
	// 坑位类型
	ItemType string `json:"item_type,omitempty" xml:"item_type,omitempty"`
	// 评分
	Score string `json:"score,omitempty" xml:"score,omitempty"`
	// 推荐主题ID
	RecommendRuleId int64 `json:"recommend_rule_id,omitempty" xml:"recommend_rule_id,omitempty"`
	// 推荐理由
	RecommendReason string `json:"recommend_reason,omitempty" xml:"recommend_reason,omitempty"`
}

V5BaseItemRbo

type Videolist

type Videolist struct {
	// 视频ID信息
	VideoId string `json:"video_id,omitempty" xml:"video_id,omitempty"`
	// 视频的来源类型,来源这个视频所在节目单的视频来源类型
	VideoExtType int64 `json:"video_ext_type,omitempty" xml:"video_ext_type,omitempty"`
	// 当前视频的播单ID
	PlayListId int64 `json:"play_list_id,omitempty" xml:"play_list_id,omitempty"`
	// 当前视频的节目ID
	ProgramId int64 `json:"program_id,omitempty" xml:"program_id,omitempty"`
	// 当前视频的排序
	Sort int64 `json:"sort,omitempty" xml:"sort,omitempty"`
	// 视频时长(单位秒)
	Duration int64 `json:"duration,omitempty" xml:"duration,omitempty"`
	// 视频名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 视频图片
	Pic string `json:"pic,omitempty" xml:"pic,omitempty"`
	// 主键ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

Videolist

type Videos

type Videos struct {
	// id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 视频标题
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 视频来源
	From string `json:"from,omitempty" xml:"from,omitempty"`
	// 视频ID
	VideoId string `json:"video_id,omitempty" xml:"video_id,omitempty"`
	// 视频图片
	PicUrl string `json:"pic_url,omitempty" xml:"pic_url,omitempty"`
}

Videos

type YoukuTvDesktopToyouRecommendAPIRequest added in v1.2.0

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

TV桌面为你推荐接口 API请求 youku.tv.desktop.toyou.recommend

提供为你推荐数据

func NewYoukuTvDesktopToyouRecommendRequest

func NewYoukuTvDesktopToyouRecommendRequest() *YoukuTvDesktopToyouRecommendAPIRequest

初始化YoukuTvDesktopToyouRecommendAPIRequest对象

func (YoukuTvDesktopToyouRecommendAPIRequest) GetApiMethodName added in v1.2.0

func (r YoukuTvDesktopToyouRecommendAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (YoukuTvDesktopToyouRecommendAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (YoukuTvDesktopToyouRecommendAPIRequest) GetBcp added in v1.2.0

Bcp Getter

func (YoukuTvDesktopToyouRecommendAPIRequest) GetChargeType added in v1.2.0

ChargeType Getter

func (YoukuTvDesktopToyouRecommendAPIRequest) GetDeviceMedia added in v1.2.0

DeviceMedia Getter

func (YoukuTvDesktopToyouRecommendAPIRequest) GetDeviceModel added in v1.2.0

DeviceModel Getter

func (YoukuTvDesktopToyouRecommendAPIRequest) GetFrom added in v1.2.0

From Getter

func (YoukuTvDesktopToyouRecommendAPIRequest) GetIp added in v1.2.0

Ip Getter

func (YoukuTvDesktopToyouRecommendAPIRequest) GetMac added in v1.2.0

Mac Getter

func (YoukuTvDesktopToyouRecommendAPIRequest) GetMaxSize added in v1.2.0

MaxSize Getter

func (YoukuTvDesktopToyouRecommendAPIRequest) GetSw added in v1.2.0

Sw Getter

func (YoukuTvDesktopToyouRecommendAPIRequest) GetToken added in v1.2.0

Token Getter

func (YoukuTvDesktopToyouRecommendAPIRequest) GetUuid added in v1.2.0

Uuid Getter

func (YoukuTvDesktopToyouRecommendAPIRequest) GetVersionCode added in v1.2.0

func (r YoukuTvDesktopToyouRecommendAPIRequest) GetVersionCode() int64

VersionCode Getter

func (*YoukuTvDesktopToyouRecommendAPIRequest) SetBcp added in v1.2.0

Bcp Setter 播控方,1:华数 7:CIBN

func (*YoukuTvDesktopToyouRecommendAPIRequest) SetChargeType added in v1.2.0

func (r *YoukuTvDesktopToyouRecommendAPIRequest) SetChargeType(_chargeType string) error

ChargeType Setter 支持收费方式,0-免费 1-限免 2-单点 3-包月 4-红包 5-单包,多项用“,”隔开

func (*YoukuTvDesktopToyouRecommendAPIRequest) SetDeviceMedia added in v1.2.0

func (r *YoukuTvDesktopToyouRecommendAPIRequest) SetDeviceMedia(_deviceMedia string) error

DeviceMedia Setter 支持媒体类型,dts,drm,dolby,h265

func (*YoukuTvDesktopToyouRecommendAPIRequest) SetDeviceModel added in v1.2.0

func (r *YoukuTvDesktopToyouRecommendAPIRequest) SetDeviceModel(_deviceModel string) error

DeviceModel Setter 终端设备型号

func (*YoukuTvDesktopToyouRecommendAPIRequest) SetFrom added in v1.2.0

From Setter 影视来源,0-淘tv 7-优酷免费 9-优酷付费 多项用“,”隔开

func (*YoukuTvDesktopToyouRecommendAPIRequest) SetIp added in v1.2.0

Ip Setter 请求IP

func (*YoukuTvDesktopToyouRecommendAPIRequest) SetMac added in v1.2.0

Mac Setter 终端设备mac

func (*YoukuTvDesktopToyouRecommendAPIRequest) SetMaxSize added in v1.2.0

func (r *YoukuTvDesktopToyouRecommendAPIRequest) SetMaxSize(_maxSize int64) error

MaxSize Setter 获取的最大节目数

func (*YoukuTvDesktopToyouRecommendAPIRequest) SetSw added in v1.2.0

Sw Setter 分辨率,sw720 sw1080

func (*YoukuTvDesktopToyouRecommendAPIRequest) SetToken added in v1.2.0

Token Setter 用户登陆token

func (*YoukuTvDesktopToyouRecommendAPIRequest) SetUuid added in v1.2.0

Uuid Setter 终端设备uuid

func (*YoukuTvDesktopToyouRecommendAPIRequest) SetVersionCode added in v1.2.0

func (r *YoukuTvDesktopToyouRecommendAPIRequest) SetVersionCode(_versionCode int64) error

VersionCode Setter 桌面版本号

type YoukuTvDesktopToyouRecommendAPIResponse

type YoukuTvDesktopToyouRecommendAPIResponse struct {
	model.CommonResponse
	YoukuTvDesktopToyouRecommendAPIResponseModel
}

TV桌面为你推荐接口 API返回值 youku.tv.desktop.toyou.recommend

提供为你推荐数据

type YoukuTvDesktopToyouRecommendAPIResponseModel added in v1.2.0

type YoukuTvDesktopToyouRecommendAPIResponseModel struct {
	XMLName xml.Name `xml:"youku_tv_desktop_toyou_recommend_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 响应的结果列表
	Results []V5BaseItemRbo `json:"results,omitempty" xml:"results>v5base_item_rbo,omitempty"`
}

TV桌面为你推荐接口 成功返回结果

Jump to

Keyboard shortcuts

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