ott

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=29910&docType=2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entrylist

type Entrylist struct {
	// 入口ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 入口名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 入口图标
	PicUrl string `json:"pic_url,omitempty" xml:"pic_url,omitempty"`
	// 排序
	Sort int64 `json:"sort,omitempty" xml:"sort,omitempty"`
	// 跳转行为
	Action string `json:"action,omitempty" xml:"action,omitempty"`
	// 行为扩展
	Extra string `json:"extra,omitempty" xml:"extra,omitempty"`
}

Entrylist

type HttpDns

type HttpDns struct {
	// method
	Method string `json:"method,omitempty" xml:"method,omitempty"`
	// tvHost
	TvHost string `json:"tv_host,omitempty" xml:"tv_host,omitempty"`
	// dnsAddress
	DnsAddress string `json:"dns_address,omitempty" xml:"dns_address,omitempty"`
}

HttpDns

type ItemEntryDo

type ItemEntryDo struct {
	// 行为扩展
	Extra string `json:"extra,omitempty" xml:"extra,omitempty"`
	// 跳转行为
	Action string `json:"action,omitempty" xml:"action,omitempty"`
	// 排序
	Sort int64 `json:"sort,omitempty" xml:"sort,omitempty"`
	// 入口图标
	PicUrl string `json:"pic_url,omitempty" xml:"pic_url,omitempty"`
	// 入口名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 入口ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

ItemEntryDo

type Itemlist

type Itemlist struct {
	// 坑位ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 坑位名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 坑位类型
	Type string `json:"type,omitempty" xml:"type,omitempty"`
	// 摘要看点
	Summary string `json:"summary,omitempty" xml:"summary,omitempty"`
	// 角标图
	PicCorner *PicCornerDo `json:"pic_corner,omitempty" xml:"pic_corner,omitempty"`
	// 背景图标
	PicUrl string `json:"pic_url,omitempty" xml:"pic_url,omitempty"`
	// 动画图标
	PicUrl2 string `json:"pic_url2,omitempty" xml:"pic_url2,omitempty"`
	// 前景图标
	PicUrl1 string `json:"pic_url1,omitempty" xml:"pic_url1,omitempty"`
	// 爆米花图
	PicPops []string `json:"pic_pops,omitempty" xml:"pic_pops>string,omitempty"`
	// 便签按钮
	NoteBtns []Notebtns `json:"note_btns,omitempty" xml:"note_btns>notebtns,omitempty"`
	// 主标题
	MainTitle string `json:"main_title,omitempty" xml:"main_title,omitempty"`
	// 动画类型
	AnimeType string `json:"anime_type,omitempty" xml:"anime_type,omitempty"`
	// 功能入口
	Entry *ItemEntryDo `json:"entry,omitempty" xml:"entry,omitempty"`
	// 排行榜
	Chart *MetaChartDo `json:"chart,omitempty" xml:"chart,omitempty"`
	// 类目入口
	EntryList []Entrylist `json:"entry_list,omitempty" xml:"entry_list>entrylist,omitempty"`
	// 行为扩展
	Extra string `json:"extra,omitempty" xml:"extra,omitempty"`
	// 跳转行为
	Action string `json:"action,omitempty" xml:"action,omitempty"`
	// picTitle
	PicTitle string `json:"pic_title,omitempty" xml:"pic_title,omitempty"`
	// 轮播频道ID
	ChannelId int64 `json:"channel_id,omitempty" xml:"channel_id,omitempty"`
	// 显示方式
	ShowType string `json:"show_type,omitempty" xml:"show_type,omitempty"`
	// 坑位号
	Position int64 `json:"position,omitempty" xml:"position,omitempty"`
	// 桌面坑位ID
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 展示方式
	DisplayType string `json:"display_type,omitempty" xml:"display_type,omitempty"`
	// 坑位校验码
	VerifyCode string `json:"verify_code,omitempty" xml:"verify_code,omitempty"`
	// 副标题
	SubTitles []string `json:"sub_titles,omitempty" xml:"sub_titles>string,omitempty"`
	// 入口风格
	EntryStyle int64 `json:"entry_style,omitempty" xml:"entry_style,omitempty"`
	// 背景图标
	PicMap string `json:"pic_map,omitempty" xml:"pic_map,omitempty"`
	// 待推荐主题
	RuleIds []string `json:"rule_ids,omitempty" xml:"rule_ids>string,omitempty"`
	// 推荐主题
	RuleId int64 `json:"rule_id,omitempty" xml:"rule_id,omitempty"`
	// 推荐场景
	RecAppId int64 `json:"rec_app_id,omitempty" xml:"rec_app_id,omitempty"`
	// 推荐类型,0:运营自主推荐,1:纯个性化推荐,2:主题个性化推荐
	RecType int64 `json:"rec_type,omitempty" xml:"rec_type,omitempty"`
}

Itemlist

type Items

type Items struct {
	// 坑位号
	Position int64 `json:"position,omitempty" xml:"position,omitempty"`
	// 动画类型
	AnimeType string `json:"anime_type,omitempty" xml:"anime_type,omitempty"`
	// 主标题
	MainTitle string `json:"main_title,omitempty" xml:"main_title,omitempty"`
	// 便签按钮
	NoteBtns []Notebtns `json:"note_btns,omitempty" xml:"note_btns>notebtns,omitempty"`
	// 爆米花图
	PicPops []string `json:"pic_pops,omitempty" xml:"pic_pops>string,omitempty"`
	// 前景图标
	PicUrl1 string `json:"pic_url1,omitempty" xml:"pic_url1,omitempty"`
	// 动画图标
	PicUrl2 string `json:"pic_url2,omitempty" xml:"pic_url2,omitempty"`
	// 背景图标
	PicUrl string `json:"pic_url,omitempty" xml:"pic_url,omitempty"`
	// 角标图
	PicCorner *PicCornerDo `json:"pic_corner,omitempty" xml:"pic_corner,omitempty"`
	// 摘要看点
	Summary string `json:"summary,omitempty" xml:"summary,omitempty"`
	// 坑位类型
	Type string `json:"type,omitempty" xml:"type,omitempty"`
	// 坑位名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 内容坑位ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 坑位列表
	ItemList []Itemlist `json:"item_list,omitempty" xml:"item_list>itemlist,omitempty"`
	// 轮询时间
	CycleTime int64 `json:"cycle_time,omitempty" xml:"cycle_time,omitempty"`
	// 坑位校验码
	VerifyCode string `json:"verify_code,omitempty" xml:"verify_code,omitempty"`
	// 展示方式
	DisplayType string `json:"display_type,omitempty" xml:"display_type,omitempty"`
	// 桌面坑位ID
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 功能入口
	Entry *ItemEntryDo `json:"entry,omitempty" xml:"entry,omitempty"`
	// 标题图
	PicTitle string `json:"pic_title,omitempty" xml:"pic_title,omitempty"`
	// 排行榜
	Chart *MetaChartDo `json:"chart,omitempty" xml:"chart,omitempty"`
	// 类目入口
	EntryList []Entrylist `json:"entry_list,omitempty" xml:"entry_list>entrylist,omitempty"`
	// 行为扩展
	Extra string `json:"extra,omitempty" xml:"extra,omitempty"`
	// 跳转行为
	Action string `json:"action,omitempty" xml:"action,omitempty"`
	// 轮播频道ID
	ChannelId int64 `json:"channel_id,omitempty" xml:"channel_id,omitempty"`
	// 显示方式
	ShowType string `json:"show_type,omitempty" xml:"show_type,omitempty"`
	// 副标题
	SubTitles []string `json:"sub_titles,omitempty" xml:"sub_titles>string,omitempty"`
	// 入口风格
	EntryStyle int64 `json:"entry_style,omitempty" xml:"entry_style,omitempty"`
	// 背景图标
	PicMap string `json:"pic_map,omitempty" xml:"pic_map,omitempty"`
	// 待推荐主题
	RuleIds []string `json:"rule_ids,omitempty" xml:"rule_ids>string,omitempty"`
	// 推荐主题
	RuleId int64 `json:"rule_id,omitempty" xml:"rule_id,omitempty"`
	// 推荐场景
	RecAppId int64 `json:"rec_app_id,omitempty" xml:"rec_app_id,omitempty"`
	// 推荐类型,0:运营自主推荐,1:纯个性化推荐,2:主题个性化推荐
	RecType int64 `json:"rec_type,omitempty" xml:"rec_type,omitempty"`
}

Items

type LauncherDo

type LauncherDo struct {
	// 桌面坑位
	Items []Items `json:"items,omitempty" xml:"items>items,omitempty"`
	// 设备属性
	Property *PropertyDo `json:"property,omitempty" xml:"property,omitempty"`
	// 桌面配置
	Version *VersionDo `json:"version,omitempty" xml:"version,omitempty"`
}

LauncherDo

type MetaChartDo

type MetaChartDo struct {
	// 排行标题
	Titles []string `json:"titles,omitempty" xml:"titles>string,omitempty"`
	// 排行类型
	Type string `json:"type,omitempty" xml:"type,omitempty"`
}

MetaChartDo

type Notebtns

type Notebtns struct {
	// 便签类型
	Type string `json:"type,omitempty" xml:"type,omitempty"`
	// 便签名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 排序
	Sort int64 `json:"sort,omitempty" xml:"sort,omitempty"`
}

Notebtns

type PicCornerDo

type PicCornerDo struct {
	// 角标类型
	Type string `json:"type,omitempty" xml:"type,omitempty"`
	// 角标地址
	Url string `json:"url,omitempty" xml:"url,omitempty"`
	// 角标文案
	Text string `json:"text,omitempty" xml:"text,omitempty"`
}

PicCornerDo

type PlayUrlV2Vo

type PlayUrlV2Vo struct {
	// 订单状态
	OrderStatus int64 `json:"order_status,omitempty" xml:"order_status,omitempty"`
	// ytid
	Ytid int64 `json:"ytid,omitempty" xml:"ytid,omitempty"`
	// hlsContent
	HlsContent string `json:"hls_content,omitempty" xml:"hls_content,omitempty"`
	// hlsContentUrl
	HlsContentUrl string `json:"hls_content_url,omitempty" xml:"hls_content_url,omitempty"`
	// dashContent
	DashContent string `json:"dash_content,omitempty" xml:"dash_content,omitempty"`
	// drmToken
	DrmToken string `json:"drm_token,omitempty" xml:"drm_token,omitempty"`
	// errCode
	ErrCode int64 `json:"err_code,omitempty" xml:"err_code,omitempty"`
	// duration
	Duration int64 `json:"duration,omitempty" xml:"duration,omitempty"`
	// programId
	ProgramId int64 `json:"program_id,omitempty" xml:"program_id,omitempty"`
	// productType
	ProductType int64 `json:"product_type,omitempty" xml:"product_type,omitempty"`
	// sourceInfo
	SourceInfo *SourceInfo `json:"source_info,omitempty" xml:"source_info,omitempty"`
	// httpDns
	HttpDns *HttpDns `json:"http_dns,omitempty" xml:"http_dns,omitempty"`
	// trial
	Trial bool `json:"trial,omitempty" xml:"trial,omitempty"`
	// tokenValid
	TokenValid bool `json:"token_valid,omitempty" xml:"token_valid,omitempty"`
	// free
	Free bool `json:"free,omitempty" xml:"free,omitempty"`
	// overDeviceLimit
	OverDeviceLimit bool `json:"over_device_limit,omitempty" xml:"over_device_limit,omitempty"`
	// live
	Live bool `json:"live,omitempty" xml:"live,omitempty"`
	// 片头
	StartTime int64 `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 片尾
	EndTime int64 `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// vr
	Vr bool `json:"vr,omitempty" xml:"vr,omitempty"`
}

PlayUrlV2Vo

type PropertyDo

type PropertyDo struct {
	// 属性键值对
	Data string `json:"data,omitempty" xml:"data,omitempty"`
	// 属性校验码
	VerifyCode string `json:"verify_code,omitempty" xml:"verify_code,omitempty"`
}

PropertyDo

type SourceInfo

type SourceInfo struct {
	// v1080
	V1080 string `json:"v1080,omitempty" xml:"v1080,omitempty"`
	// v720
	V720 string `json:"v720,omitempty" xml:"v720,omitempty"`
	// v480
	V480 string `json:"v480,omitempty" xml:"v480,omitempty"`
	// v320
	V320 string `json:"v320,omitempty" xml:"v320,omitempty"`
	// v240
	V240 string `json:"v240,omitempty" xml:"v240,omitempty"`
	// vBlueray4k
	VBlueray4k string `json:"v_blueray4k,omitempty" xml:"v_blueray4k,omitempty"`
	// hlsContentUrl
	HlsContentUrl string `json:"hls_content_url,omitempty" xml:"hls_content_url,omitempty"`
	// v2160tv
	V2160tv string `json:"v2160tv,omitempty" xml:"v2160tv,omitempty"`
	// v1080tv
	V1080tv string `json:"v1080tv,omitempty" xml:"v1080tv,omitempty"`
	// v720tv
	V720tv string `json:"v720tv,omitempty" xml:"v720tv,omitempty"`
	// v480tv
	V480tv string `json:"v480tv,omitempty" xml:"v480tv,omitempty"`
	// v320tv
	V320tv string `json:"v320tv,omitempty" xml:"v320tv,omitempty"`
	// v240tv
	V240tv string `json:"v240tv,omitempty" xml:"v240tv,omitempty"`
}

SourceInfo

type VersionDo

type VersionDo struct {
	// 图标规格
	EntrySize int64 `json:"entry_size,omitempty" xml:"entry_size,omitempty"`
	// 桌面标识
	LauncherCode string `json:"launcher_code,omitempty" xml:"launcher_code,omitempty"`
	// 桌面名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 桌面ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

VersionDo

type YoukuOttAlicbFacadeserviceGetdataAPIResponse

type YoukuOttAlicbFacadeserviceGetdataAPIResponse struct {
	model.CommonResponse
	YoukuOttAlicbFacadeserviceGetdataResponse
}

影视SDK获取设备能力值 API返回值 youku.ott.alicb.facadeservice.getdata

影视SDK获取设备能力值

type YoukuOttAlicbFacadeserviceGetdataRequest

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

影视SDK获取设备能力值 API请求 youku.ott.alicb.facadeservice.getdata

影视SDK获取设备能力值

func NewYoukuOttAlicbFacadeserviceGetdataRequest

func NewYoukuOttAlicbFacadeserviceGetdataRequest() *YoukuOttAlicbFacadeserviceGetdataRequest

初始化YoukuOttAlicbFacadeserviceGetdataRequest对象

func (YoukuOttAlicbFacadeserviceGetdataRequest) GetApiMethodName

func (r YoukuOttAlicbFacadeserviceGetdataRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (YoukuOttAlicbFacadeserviceGetdataRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (YoukuOttAlicbFacadeserviceGetdataRequest) GetExtraInfoMap

ExtraInfoMap Getter

func (YoukuOttAlicbFacadeserviceGetdataRequest) GetPropertyMapJson

func (r YoukuOttAlicbFacadeserviceGetdataRequest) GetPropertyMapJson() string

PropertyMapJson Getter

func (YoukuOttAlicbFacadeserviceGetdataRequest) GetServiceList

func (r YoukuOttAlicbFacadeserviceGetdataRequest) GetServiceList() []string

ServiceList Getter

func (YoukuOttAlicbFacadeserviceGetdataRequest) GetUuid

Uuid Getter

func (*YoukuOttAlicbFacadeserviceGetdataRequest) SetExtraInfoMap

func (r *YoukuOttAlicbFacadeserviceGetdataRequest) SetExtraInfoMap(extraInfoMap string) error

ExtraInfoMap Setter 扩展属性

func (*YoukuOttAlicbFacadeserviceGetdataRequest) SetPropertyMapJson

func (r *YoukuOttAlicbFacadeserviceGetdataRequest) SetPropertyMapJson(propertyMapJson string) error

PropertyMapJson Setter 属性MAP JSON串

func (*YoukuOttAlicbFacadeserviceGetdataRequest) SetServiceList

func (r *YoukuOttAlicbFacadeserviceGetdataRequest) SetServiceList(serviceList []string) error

ServiceList Setter 能力维度

func (*YoukuOttAlicbFacadeserviceGetdataRequest) SetUuid

Uuid Setter 设备唯一标识

type YoukuOttAlicbFacadeserviceGetdataResponse

type YoukuOttAlicbFacadeserviceGetdataResponse struct {
	XMLName xml.Name `xml:"youku_ott_alicb_facadeservice_getdata_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 设备能力JSON
	Model string `json:"model,omitempty" xml:"model,omitempty"`
}

影视SDK获取设备能力值 成功返回结果

type YoukuOttPlayserviceGetplayurlAPIResponse

type YoukuOttPlayserviceGetplayurlAPIResponse struct {
	model.CommonResponse
	YoukuOttPlayserviceGetplayurlResponse
}

获取播放串地址 API返回值 youku.ott.playservice.getplayurl

获取播放串地址服务

type YoukuOttPlayserviceGetplayurlRequest

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

获取播放串地址 API请求 youku.ott.playservice.getplayurl

获取播放串地址服务

func NewYoukuOttPlayserviceGetplayurlRequest

func NewYoukuOttPlayserviceGetplayurlRequest() *YoukuOttPlayserviceGetplayurlRequest

初始化YoukuOttPlayserviceGetplayurlRequest对象

func (YoukuOttPlayserviceGetplayurlRequest) GetApiMethodName

func (r YoukuOttPlayserviceGetplayurlRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (YoukuOttPlayserviceGetplayurlRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (YoukuOttPlayserviceGetplayurlRequest) GetHavanaToken

func (r YoukuOttPlayserviceGetplayurlRequest) GetHavanaToken() string

HavanaToken Getter

func (YoukuOttPlayserviceGetplayurlRequest) GetSystemInfo

func (r YoukuOttPlayserviceGetplayurlRequest) GetSystemInfo() string

SystemInfo Getter

func (YoukuOttPlayserviceGetplayurlRequest) GetVideoId

VideoId Getter

func (YoukuOttPlayserviceGetplayurlRequest) GetYktk

Yktk Getter

func (*YoukuOttPlayserviceGetplayurlRequest) SetHavanaToken

func (r *YoukuOttPlayserviceGetplayurlRequest) SetHavanaToken(havanaToken string) error

HavanaToken Setter 账号登录态

func (*YoukuOttPlayserviceGetplayurlRequest) SetSystemInfo

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

SystemInfo Setter 系统信息

func (*YoukuOttPlayserviceGetplayurlRequest) SetVideoId

func (r *YoukuOttPlayserviceGetplayurlRequest) SetVideoId(videoId int64) error

VideoId Setter 视频ID

func (*YoukuOttPlayserviceGetplayurlRequest) SetYktk

Yktk Setter 优酷账号登录态

type YoukuOttPlayserviceGetplayurlResponse

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

获取播放串地址 成功返回结果

type YunosTvscreenLauncherGetAPIResponse

type YunosTvscreenLauncherGetAPIResponse struct {
	model.CommonResponse
	YunosTvscreenLauncherGetResponse
}

一体机桌面 API返回值 yunos.tvscreen.launcher.get

LCTS一体机桌面后台,提供基于运营坑位适配的桌面服务

type YunosTvscreenLauncherGetRequest

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

一体机桌面 API请求 yunos.tvscreen.launcher.get

LCTS一体机桌面后台,提供基于运营坑位适配的桌面服务

func NewYunosTvscreenLauncherGetRequest

func NewYunosTvscreenLauncherGetRequest() *YunosTvscreenLauncherGetRequest

初始化YunosTvscreenLauncherGetRequest对象

func (YunosTvscreenLauncherGetRequest) GetApiMethodName

func (r YunosTvscreenLauncherGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (YunosTvscreenLauncherGetRequest) GetApiParams

func (r YunosTvscreenLauncherGetRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (YunosTvscreenLauncherGetRequest) GetIp

Ip Getter

func (YunosTvscreenLauncherGetRequest) GetProperty

func (r YunosTvscreenLauncherGetRequest) GetProperty() string

Property Getter

func (*YunosTvscreenLauncherGetRequest) SetIp

Ip Setter IP来源

func (*YunosTvscreenLauncherGetRequest) SetProperty

func (r *YunosTvscreenLauncherGetRequest) SetProperty(property string) error

Property Setter 设备属性

type YunosTvscreenLauncherGetResponse

type YunosTvscreenLauncherGetResponse struct {
	XMLName xml.Name `xml:"yunos_tvscreen_launcher_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// headers
	Headers string `json:"headers,omitempty" xml:"headers,omitempty"`
	// model
	Model *LauncherDo `json:"model,omitempty" xml:"model,omitempty"`
	// 状态码
	HttpStatusCode int64 `json:"http_status_code,omitempty" xml:"http_status_code,omitempty"`
	// 业务扩展
	BizExtMap string `json:"biz_ext_map,omitempty" xml:"biz_ext_map,omitempty"`
}

一体机桌面 成功返回结果

Jump to

Keyboard shortcuts

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