taotv

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 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 TaobaoTaotvCarouselCategoryListAPIResponse

type TaobaoTaotvCarouselCategoryListAPIResponse struct {
	model.CommonResponse
	TaobaoTaotvCarouselCategoryListResponse
}

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

获取轮播分类列表

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 TaobaoTaotvCarouselCategoryListRequest

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

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

获取轮播分类列表

func NewTaobaoTaotvCarouselCategoryListRequest

func NewTaobaoTaotvCarouselCategoryListRequest() *TaobaoTaotvCarouselCategoryListRequest

初始化TaobaoTaotvCarouselCategoryListRequest对象

func (TaobaoTaotvCarouselCategoryListRequest) GetApiMethodName

func (r TaobaoTaotvCarouselCategoryListRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTaotvCarouselCategoryListRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoTaotvCarouselCategoryListRequest) GetSystemInfo

SystemInfo Getter

func (*TaobaoTaotvCarouselCategoryListRequest) SetSystemInfo

func (r *TaobaoTaotvCarouselCategoryListRequest) SetSystemInfo(systemInfo string) error

SystemInfo Setter 设备信息

type TaobaoTaotvCarouselCategoryListResponse

type TaobaoTaotvCarouselCategoryListResponse 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 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 TaobaoTaotvCarouselChannelAllAPIResponse

type TaobaoTaotvCarouselChannelAllAPIResponse struct {
	model.CommonResponse
	TaobaoTaotvCarouselChannelAllResponse
}

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

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

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 TaobaoTaotvCarouselChannelAllRequest

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

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

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

func NewTaobaoTaotvCarouselChannelAllRequest

func NewTaobaoTaotvCarouselChannelAllRequest() *TaobaoTaotvCarouselChannelAllRequest

初始化TaobaoTaotvCarouselChannelAllRequest对象

func (TaobaoTaotvCarouselChannelAllRequest) GetApiMethodName

func (r TaobaoTaotvCarouselChannelAllRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTaotvCarouselChannelAllRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoTaotvCarouselChannelAllRequest) GetSystemInfo

func (r TaobaoTaotvCarouselChannelAllRequest) GetSystemInfo() string

SystemInfo Getter

func (*TaobaoTaotvCarouselChannelAllRequest) SetSystemInfo

func (r *TaobaoTaotvCarouselChannelAllRequest) SetSystemInfo(systemInfo string) error

SystemInfo Setter 系统信息

type TaobaoTaotvCarouselChannelAllResponse

type TaobaoTaotvCarouselChannelAllResponse 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 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 TaobaoTaotvCarouselPlaylistGetAPIResponse

type TaobaoTaotvCarouselPlaylistGetAPIResponse struct {
	model.CommonResponse
	TaobaoTaotvCarouselPlaylistGetResponse
}

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

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

type TaobaoTaotvCarouselPlaylistGetRequest

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

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

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

func NewTaobaoTaotvCarouselPlaylistGetRequest

func NewTaobaoTaotvCarouselPlaylistGetRequest() *TaobaoTaotvCarouselPlaylistGetRequest

初始化TaobaoTaotvCarouselPlaylistGetRequest对象

func (TaobaoTaotvCarouselPlaylistGetRequest) GetApiMethodName

func (r TaobaoTaotvCarouselPlaylistGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTaotvCarouselPlaylistGetRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoTaotvCarouselPlaylistGetRequest) GetChannelId

ChannelId Getter

func (TaobaoTaotvCarouselPlaylistGetRequest) GetSystemInfo

SystemInfo Getter

func (*TaobaoTaotvCarouselPlaylistGetRequest) SetChannelId

func (r *TaobaoTaotvCarouselPlaylistGetRequest) SetChannelId(channelId int64) error

ChannelId Setter 频道ID

func (*TaobaoTaotvCarouselPlaylistGetRequest) SetSystemInfo

func (r *TaobaoTaotvCarouselPlaylistGetRequest) SetSystemInfo(systemInfo string) error

SystemInfo Setter 设备信息

type TaobaoTaotvCarouselPlaylistGetResponse

type TaobaoTaotvCarouselPlaylistGetResponse 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 TaobaoTaotvVideoPlaylistAllAPIResponse

type TaobaoTaotvVideoPlaylistAllAPIResponse struct {
	model.CommonResponse
	TaobaoTaotvVideoPlaylistAllResponse
}

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

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

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 TaobaoTaotvVideoPlaylistAllRequest

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

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

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

func NewTaobaoTaotvVideoPlaylistAllRequest

func NewTaobaoTaotvVideoPlaylistAllRequest() *TaobaoTaotvVideoPlaylistAllRequest

初始化TaobaoTaotvVideoPlaylistAllRequest对象

func (TaobaoTaotvVideoPlaylistAllRequest) GetApiMethodName

func (r TaobaoTaotvVideoPlaylistAllRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTaotvVideoPlaylistAllRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoTaotvVideoPlaylistAllRequest) GetSystemInfo

func (r TaobaoTaotvVideoPlaylistAllRequest) GetSystemInfo() string

SystemInfo Getter

func (*TaobaoTaotvVideoPlaylistAllRequest) SetSystemInfo

func (r *TaobaoTaotvVideoPlaylistAllRequest) SetSystemInfo(systemInfo string) error

SystemInfo Setter 系统信息

type TaobaoTaotvVideoPlaylistAllResponse

type TaobaoTaotvVideoPlaylistAllResponse 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 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 TaobaoTaotvVideoPlaylistGetAPIResponse

type TaobaoTaotvVideoPlaylistGetAPIResponse struct {
	model.CommonResponse
	TaobaoTaotvVideoPlaylistGetResponse
}

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

根据频道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 TaobaoTaotvVideoPlaylistGetRequest

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

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

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

func NewTaobaoTaotvVideoPlaylistGetRequest

func NewTaobaoTaotvVideoPlaylistGetRequest() *TaobaoTaotvVideoPlaylistGetRequest

初始化TaobaoTaotvVideoPlaylistGetRequest对象

func (TaobaoTaotvVideoPlaylistGetRequest) GetApiMethodName

func (r TaobaoTaotvVideoPlaylistGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTaotvVideoPlaylistGetRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoTaotvVideoPlaylistGetRequest) GetPlayListId

func (r TaobaoTaotvVideoPlaylistGetRequest) GetPlayListId() int64

PlayListId Getter

func (TaobaoTaotvVideoPlaylistGetRequest) GetSystemInfo

func (r TaobaoTaotvVideoPlaylistGetRequest) GetSystemInfo() string

SystemInfo Getter

func (*TaobaoTaotvVideoPlaylistGetRequest) SetPlayListId

func (r *TaobaoTaotvVideoPlaylistGetRequest) SetPlayListId(playListId int64) error

PlayListId Setter 播单id

func (*TaobaoTaotvVideoPlaylistGetRequest) SetSystemInfo

func (r *TaobaoTaotvVideoPlaylistGetRequest) SetSystemInfo(systemInfo string) error

SystemInfo Setter 系统信息

type TaobaoTaotvVideoPlaylistGetResponse

type TaobaoTaotvVideoPlaylistGetResponse 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 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 TaobaoTaotvVideoPlaylistOttnavGetAPIResponse

type TaobaoTaotvVideoPlaylistOttnavGetAPIResponse struct {
	model.CommonResponse
	TaobaoTaotvVideoPlaylistOttnavGetResponse
}

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

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

type TaobaoTaotvVideoPlaylistOttnavGetRequest

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

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

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

func NewTaobaoTaotvVideoPlaylistOttnavGetRequest

func NewTaobaoTaotvVideoPlaylistOttnavGetRequest() *TaobaoTaotvVideoPlaylistOttnavGetRequest

初始化TaobaoTaotvVideoPlaylistOttnavGetRequest对象

func (TaobaoTaotvVideoPlaylistOttnavGetRequest) GetApiMethodName

func (r TaobaoTaotvVideoPlaylistOttnavGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTaotvVideoPlaylistOttnavGetRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoTaotvVideoPlaylistOttnavGetRequest) GetPlayListId

PlayListId Getter

func (TaobaoTaotvVideoPlaylistOttnavGetRequest) GetPlayListNav

func (r TaobaoTaotvVideoPlaylistOttnavGetRequest) GetPlayListNav() []string

PlayListNav Getter

func (TaobaoTaotvVideoPlaylistOttnavGetRequest) GetSystemInfo

SystemInfo Getter

func (*TaobaoTaotvVideoPlaylistOttnavGetRequest) SetPlayListId

func (r *TaobaoTaotvVideoPlaylistOttnavGetRequest) SetPlayListId(playListId int64) error

PlayListId Setter 播单id

func (*TaobaoTaotvVideoPlaylistOttnavGetRequest) SetPlayListNav

func (r *TaobaoTaotvVideoPlaylistOttnavGetRequest) SetPlayListNav(playListNav []string) error

PlayListNav Setter 播单列表

func (*TaobaoTaotvVideoPlaylistOttnavGetRequest) SetSystemInfo

func (r *TaobaoTaotvVideoPlaylistOttnavGetRequest) SetSystemInfo(systemInfo string) error

SystemInfo Setter 系统信息

type TaobaoTaotvVideoPlaylistOttnavGetResponse

type TaobaoTaotvVideoPlaylistOttnavGetResponse 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 TaobaoTaotvVideoPlaylistPageAPIResponse

type TaobaoTaotvVideoPlaylistPageAPIResponse struct {
	model.CommonResponse
	TaobaoTaotvVideoPlaylistPageResponse
}

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

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

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 TaobaoTaotvVideoPlaylistPageRequest

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

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

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

func NewTaobaoTaotvVideoPlaylistPageRequest

func NewTaobaoTaotvVideoPlaylistPageRequest() *TaobaoTaotvVideoPlaylistPageRequest

初始化TaobaoTaotvVideoPlaylistPageRequest对象

func (TaobaoTaotvVideoPlaylistPageRequest) GetApiMethodName

func (r TaobaoTaotvVideoPlaylistPageRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTaotvVideoPlaylistPageRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoTaotvVideoPlaylistPageRequest) GetPageNo

PageNo Getter

func (TaobaoTaotvVideoPlaylistPageRequest) GetSystemInfo

func (r TaobaoTaotvVideoPlaylistPageRequest) GetSystemInfo() string

SystemInfo Getter

func (*TaobaoTaotvVideoPlaylistPageRequest) SetPageNo

func (r *TaobaoTaotvVideoPlaylistPageRequest) SetPageNo(pageNo int64) error

PageNo Setter 当前页(从1开始)

func (*TaobaoTaotvVideoPlaylistPageRequest) SetSystemInfo

func (r *TaobaoTaotvVideoPlaylistPageRequest) SetSystemInfo(systemInfo string) error

SystemInfo Setter 客户端信息

type TaobaoTaotvVideoPlaylistPageResponse

type TaobaoTaotvVideoPlaylistPageResponse 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 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 YoukuTvDesktopToyouRecommendAPIResponse

type YoukuTvDesktopToyouRecommendAPIResponse struct {
	model.CommonResponse
	YoukuTvDesktopToyouRecommendResponse
}

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

提供为你推荐数据

type YoukuTvDesktopToyouRecommendRequest

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

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

提供为你推荐数据

func NewYoukuTvDesktopToyouRecommendRequest

func NewYoukuTvDesktopToyouRecommendRequest() *YoukuTvDesktopToyouRecommendRequest

初始化YoukuTvDesktopToyouRecommendRequest对象

func (YoukuTvDesktopToyouRecommendRequest) GetApiMethodName

func (r YoukuTvDesktopToyouRecommendRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (YoukuTvDesktopToyouRecommendRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (YoukuTvDesktopToyouRecommendRequest) GetBcp

Bcp Getter

func (YoukuTvDesktopToyouRecommendRequest) GetChargeType

func (r YoukuTvDesktopToyouRecommendRequest) GetChargeType() string

ChargeType Getter

func (YoukuTvDesktopToyouRecommendRequest) GetDeviceMedia

func (r YoukuTvDesktopToyouRecommendRequest) GetDeviceMedia() string

DeviceMedia Getter

func (YoukuTvDesktopToyouRecommendRequest) GetDeviceModel

func (r YoukuTvDesktopToyouRecommendRequest) GetDeviceModel() string

DeviceModel Getter

func (YoukuTvDesktopToyouRecommendRequest) GetFrom

From Getter

func (YoukuTvDesktopToyouRecommendRequest) GetIp

Ip Getter

func (YoukuTvDesktopToyouRecommendRequest) GetMac

Mac Getter

func (YoukuTvDesktopToyouRecommendRequest) GetMaxSize

MaxSize Getter

func (YoukuTvDesktopToyouRecommendRequest) GetSw

Sw Getter

func (YoukuTvDesktopToyouRecommendRequest) GetToken

Token Getter

func (YoukuTvDesktopToyouRecommendRequest) GetUuid

Uuid Getter

func (YoukuTvDesktopToyouRecommendRequest) GetVersionCode

func (r YoukuTvDesktopToyouRecommendRequest) GetVersionCode() int64

VersionCode Getter

func (*YoukuTvDesktopToyouRecommendRequest) SetBcp

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

func (*YoukuTvDesktopToyouRecommendRequest) SetChargeType

func (r *YoukuTvDesktopToyouRecommendRequest) SetChargeType(chargeType string) error

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

func (*YoukuTvDesktopToyouRecommendRequest) SetDeviceMedia

func (r *YoukuTvDesktopToyouRecommendRequest) SetDeviceMedia(deviceMedia string) error

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

func (*YoukuTvDesktopToyouRecommendRequest) SetDeviceModel

func (r *YoukuTvDesktopToyouRecommendRequest) SetDeviceModel(deviceModel string) error

DeviceModel Setter 终端设备型号

func (*YoukuTvDesktopToyouRecommendRequest) SetFrom

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

func (*YoukuTvDesktopToyouRecommendRequest) SetIp

Ip Setter 请求IP

func (*YoukuTvDesktopToyouRecommendRequest) SetMac

Mac Setter 终端设备mac

func (*YoukuTvDesktopToyouRecommendRequest) SetMaxSize

func (r *YoukuTvDesktopToyouRecommendRequest) SetMaxSize(maxSize int64) error

MaxSize Setter 获取的最大节目数

func (*YoukuTvDesktopToyouRecommendRequest) SetSw

Sw Setter 分辨率,sw720 sw1080

func (*YoukuTvDesktopToyouRecommendRequest) SetToken

Token Setter 用户登陆token

func (*YoukuTvDesktopToyouRecommendRequest) SetUuid

Uuid Setter 终端设备uuid

func (*YoukuTvDesktopToyouRecommendRequest) SetVersionCode

func (r *YoukuTvDesktopToyouRecommendRequest) SetVersionCode(versionCode int64) error

VersionCode Setter 桌面版本号

type YoukuTvDesktopToyouRecommendResponse

type YoukuTvDesktopToyouRecommendResponse 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