youkuott

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package youkuott 包含优酷-媒资相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type YoukuMediaapiVideoSnapshotGetAPIRequest

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

YoukuMediaapiVideoSnapshotGetAPIRequest 根据视频ID查询视频缩微图 API请求 youku.mediaapi.video.snapshot.get

根据视频ID查询视频缩微图

func NewYoukuMediaapiVideoSnapshotGetRequest

func NewYoukuMediaapiVideoSnapshotGetRequest() *YoukuMediaapiVideoSnapshotGetAPIRequest

NewYoukuMediaapiVideoSnapshotGetRequest 初始化YoukuMediaapiVideoSnapshotGetAPIRequest对象

func (YoukuMediaapiVideoSnapshotGetAPIRequest) GetApiMethodName

func (r YoukuMediaapiVideoSnapshotGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (YoukuMediaapiVideoSnapshotGetAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (YoukuMediaapiVideoSnapshotGetAPIRequest) GetRawParams added in v1.2.8

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

func (YoukuMediaapiVideoSnapshotGetAPIRequest) GetVid

GetVid Vid Getter

func (*YoukuMediaapiVideoSnapshotGetAPIRequest) SetVid

SetVid is Vid Setter 视频id

type YoukuMediaapiVideoSnapshotGetAPIResponse

type YoukuMediaapiVideoSnapshotGetAPIResponse struct {
	model.CommonResponse
	YoukuMediaapiVideoSnapshotGetAPIResponseModel
}

YoukuMediaapiVideoSnapshotGetAPIResponse 根据视频ID查询视频缩微图 API返回值 youku.mediaapi.video.snapshot.get

根据视频ID查询视频缩微图

type YoukuMediaapiVideoSnapshotGetAPIResponseModel

type YoukuMediaapiVideoSnapshotGetAPIResponseModel struct {
	XMLName xml.Name `xml:"youku_mediaapi_video_snapshot_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 数据
	ModelList []YoukuMediaapiVideoSnapshotGetStruct `json:"model_list,omitempty" xml:"model_list>youku_mediaapi_video_snapshot_get_struct,omitempty"`
	// 是否成功 true:成功  false:失败(top成功标志)
	IsSuccess string `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// 返回信息
	MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
}

YoukuMediaapiVideoSnapshotGetAPIResponseModel is 根据视频ID查询视频缩微图 成功返回结果

type YoukuMediaapiVideoSnapshotGetStruct

type YoukuMediaapiVideoSnapshotGetStruct struct {
	// 图片url列表
	ThumbIdList []string `json:"thumb_id_list,omitempty" xml:"thumb_id_list>string,omitempty"`
	// 图片域名
	DomainName string `json:"domain_name,omitempty" xml:"domain_name,omitempty"`
	// 毫秒
	Sectiontime int64 `json:"sectiontime,omitempty" xml:"sectiontime,omitempty"`
}

YoukuMediaapiVideoSnapshotGetStruct 结构体

type YoukuOttKittyCommonorderSyncAPIRequest

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

YoukuOttKittyCommonorderSyncAPIRequest 运营商一般订单同步 API请求 youku.ott.kitty.commonorder.sync

运营商一般订单同步

func NewYoukuOttKittyCommonorderSyncRequest

func NewYoukuOttKittyCommonorderSyncRequest() *YoukuOttKittyCommonorderSyncAPIRequest

NewYoukuOttKittyCommonorderSyncRequest 初始化YoukuOttKittyCommonorderSyncAPIRequest对象

func (YoukuOttKittyCommonorderSyncAPIRequest) GetAccountId

GetAccountId AccountId Getter

func (YoukuOttKittyCommonorderSyncAPIRequest) GetApiMethodName

func (r YoukuOttKittyCommonorderSyncAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (YoukuOttKittyCommonorderSyncAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (YoukuOttKittyCommonorderSyncAPIRequest) GetChannelId

GetChannelId ChannelId Getter

func (YoukuOttKittyCommonorderSyncAPIRequest) GetExtInfo

GetExtInfo ExtInfo Getter

func (YoukuOttKittyCommonorderSyncAPIRequest) GetOrderId

GetOrderId OrderId Getter

func (YoukuOttKittyCommonorderSyncAPIRequest) GetProductId

GetProductId ProductId Getter

func (YoukuOttKittyCommonorderSyncAPIRequest) GetRawParams added in v1.2.8

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

func (YoukuOttKittyCommonorderSyncAPIRequest) GetSyncTime

GetSyncTime SyncTime Getter

func (YoukuOttKittyCommonorderSyncAPIRequest) GetType

GetType Type Getter

func (*YoukuOttKittyCommonorderSyncAPIRequest) SetAccountId

func (r *YoukuOttKittyCommonorderSyncAPIRequest) SetAccountId(_accountId string) error

SetAccountId is AccountId Setter 运营商用户账号账号id,与盒子登录账号tuid一致

func (*YoukuOttKittyCommonorderSyncAPIRequest) SetChannelId

func (r *YoukuOttKittyCommonorderSyncAPIRequest) SetChannelId(_channelId string) error

SetChannelId is ChannelId Setter 运营商渠道(需要找优酷方确认)

func (*YoukuOttKittyCommonorderSyncAPIRequest) SetExtInfo

func (r *YoukuOttKittyCommonorderSyncAPIRequest) SetExtInfo(_extInfo string) error

SetExtInfo is ExtInfo Setter 扩展字段,根据需要,约定具体的字段,json格式

func (*YoukuOttKittyCommonorderSyncAPIRequest) SetOrderId

func (r *YoukuOttKittyCommonorderSyncAPIRequest) SetOrderId(_orderId string) error

SetOrderId is OrderId Setter 运营商订单id,最好是16位及以上唯一ID

func (*YoukuOttKittyCommonorderSyncAPIRequest) SetProductId

func (r *YoukuOttKittyCommonorderSyncAPIRequest) SetProductId(_productId string) error

SetProductId is ProductId Setter 充值的商品id(此商品需要事先给到优酷,并把商品的业务逻辑确定下来,比如是连续包月还是单月/单季/单年)

func (*YoukuOttKittyCommonorderSyncAPIRequest) SetSyncTime

func (r *YoukuOttKittyCommonorderSyncAPIRequest) SetSyncTime(_syncTime string) error

SetSyncTime is SyncTime Setter 同步时间 格式yyyy-MM-dd HH:mm:ss 说明:如果是线上或线下订单此时间是用户支付成功时间,如果是退订则是退订时间

func (*YoukuOttKittyCommonorderSyncAPIRequest) SetType

SetType is Type Setter 订单类型 1:线上支付订单(线上应用内购买), 2:线下支付订单(比如营业厅订单), 3:连续包取消续订, 4:全额退款(立即终止权益,不分产品包,不计财务), 5:续费(运营商侧发起时才使用),6:非连续包退订(按未使用天数退款)

type YoukuOttKittyCommonorderSyncAPIResponse

type YoukuOttKittyCommonorderSyncAPIResponse struct {
	model.CommonResponse
	YoukuOttKittyCommonorderSyncAPIResponseModel
}

YoukuOttKittyCommonorderSyncAPIResponse 运营商一般订单同步 API返回值 youku.ott.kitty.commonorder.sync

运营商一般订单同步

type YoukuOttKittyCommonorderSyncAPIResponseModel

type YoukuOttKittyCommonorderSyncAPIResponseModel struct {
	XMLName xml.Name `xml:"youku_ott_kitty_commonorder_sync_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误消息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 返回码(一般情况请求方只需要关心success,除非特殊情况需要关心错误码)
	RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"`
	// 是否成功 true:成功 false:失败
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

YoukuOttKittyCommonorderSyncAPIResponseModel is 运营商一般订单同步 成功返回结果

type YoukuTvoperatorMediaPageQueryAPIRequest

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

YoukuTvoperatorMediaPageQueryAPIRequest 运营商全量媒资分页查询 API请求 youku.tvoperator.media.page.query

分页获取渠道全量媒资

func NewYoukuTvoperatorMediaPageQueryRequest

func NewYoukuTvoperatorMediaPageQueryRequest() *YoukuTvoperatorMediaPageQueryAPIRequest

NewYoukuTvoperatorMediaPageQueryRequest 初始化YoukuTvoperatorMediaPageQueryAPIRequest对象

func (YoukuTvoperatorMediaPageQueryAPIRequest) GetApiMethodName

func (r YoukuTvoperatorMediaPageQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (YoukuTvoperatorMediaPageQueryAPIRequest) GetApiParams

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

GetApiParams IRequest interface 方法, 获取API参数

func (YoukuTvoperatorMediaPageQueryAPIRequest) GetPageNo

GetPageNo PageNo Getter

func (YoukuTvoperatorMediaPageQueryAPIRequest) GetPageSize

GetPageSize PageSize Getter

func (YoukuTvoperatorMediaPageQueryAPIRequest) GetProgramId

GetProgramId ProgramId Getter

func (YoukuTvoperatorMediaPageQueryAPIRequest) GetRawParams added in v1.2.8

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

func (YoukuTvoperatorMediaPageQueryAPIRequest) GetSystemInfo

GetSystemInfo SystemInfo Getter

func (*YoukuTvoperatorMediaPageQueryAPIRequest) SetPageNo

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

SetPageNo is PageNo Setter 从第一页开始

func (*YoukuTvoperatorMediaPageQueryAPIRequest) SetPageSize

func (r *YoukuTvoperatorMediaPageQueryAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 页面大小

func (*YoukuTvoperatorMediaPageQueryAPIRequest) SetProgramId

func (r *YoukuTvoperatorMediaPageQueryAPIRequest) SetProgramId(_programId int64) error

SetProgramId is ProgramId Setter 节目programId

func (*YoukuTvoperatorMediaPageQueryAPIRequest) SetSystemInfo

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

SetSystemInfo is SystemInfo Setter 系统信息(和服务提供方确认)

type YoukuTvoperatorMediaPageQueryAPIResponse

type YoukuTvoperatorMediaPageQueryAPIResponse struct {
	model.CommonResponse
	YoukuTvoperatorMediaPageQueryAPIResponseModel
}

YoukuTvoperatorMediaPageQueryAPIResponse 运营商全量媒资分页查询 API返回值 youku.tvoperator.media.page.query

分页获取渠道全量媒资

type YoukuTvoperatorMediaPageQueryAPIResponseModel

type YoukuTvoperatorMediaPageQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"youku_tvoperator_media_page_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误码
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// 错误信息
	MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
	// 数据信息
	Model *YoukuTvoperatorMediaPageQueryModel `json:"model,omitempty" xml:"model,omitempty"`
	// 是否成功 true:成功 false:不成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

YoukuTvoperatorMediaPageQueryAPIResponseModel is 运营商全量媒资分页查询 成功返回结果

type YoukuTvoperatorMediaPageQueryData

type YoukuTvoperatorMediaPageQueryData struct {
	// 分类列表
	GenreList []string `json:"genre_list,omitempty" xml:"genre_list>string,omitempty"`
	// 导演
	DirectorList []string `json:"director_list,omitempty" xml:"director_list>string,omitempty"`
	// 演员
	PerformerList []string `json:"performer_list,omitempty" xml:"performer_list>string,omitempty"`
	// 节目国家地区列表
	AreaList []string `json:"area_list,omitempty" xml:"area_list>string,omitempty"`
	// 优酷标签
	YoukuTags string `json:"youku_tags,omitempty" xml:"youku_tags,omitempty"`
	// 分数
	Score string `json:"score,omitempty" xml:"score,omitempty"`
	// 子标题
	ShowSubtitle string `json:"show_subtitle,omitempty" xml:"show_subtitle,omitempty"`
	// 节目banner
	ShowBannerUrl string `json:"show_banner_url,omitempty" xml:"show_banner_url,omitempty"`
	// 分类名称
	ShowCategoryName string `json:"show_category_name,omitempty" xml:"show_category_name,omitempty"`
	// 纵向海报
	ShowVthumbUrl string `json:"show_vthumb_url,omitempty" xml:"show_vthumb_url,omitempty"`
	// 节目描述
	ShowDesc string `json:"show_desc,omitempty" xml:"show_desc,omitempty"`
	// 节目名称
	ShowName string `json:"show_name,omitempty" xml:"show_name,omitempty"`
	// 节目id
	ShowId string `json:"show_id,omitempty" xml:"show_id,omitempty"`
	// 横版海报
	ShowThumbUrl string `json:"show_thumb_url,omitempty" xml:"show_thumb_url,omitempty"`
	// 更新集数
	EpisodeLast int64 `json:"episode_last,omitempty" xml:"episode_last,omitempty"`
	// 是否收费,0=免费,1=收费
	Paid int64 `json:"paid,omitempty" xml:"paid,omitempty"`
	// 发行日期
	ReleaseDate int64 `json:"release_date,omitempty" xml:"release_date,omitempty"`
	// 总集数
	EpisodeTotal int64 `json:"episode_total,omitempty" xml:"episode_total,omitempty"`
	// 码流二进制组合
	PlaySet int64 `json:"play_set,omitempty" xml:"play_set,omitempty"`
	// 时长
	Seconds int64 `json:"seconds,omitempty" xml:"seconds,omitempty"`
	// 媒资最后修改时间
	GmtModified int64 `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 上线下状态
	VmacState int64 `json:"vmac_state,omitempty" xml:"vmac_state,omitempty"`
}

YoukuTvoperatorMediaPageQueryData 结构体

type YoukuTvoperatorMediaPageQueryModel

type YoukuTvoperatorMediaPageQueryModel struct {
	// 数据列表
	DataList []YoukuTvoperatorMediaPageQueryData `json:"data_list,omitempty" xml:"data_list>youku_tvoperator_media_page_query_data,omitempty"`
	// 总条数
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
	// 页号
	PageNo int64 `json:"page_no,omitempty" xml:"page_no,omitempty"`
	// 分页大小
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 总页数
	TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"`
	// 是否有下一页
	HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"`
}

YoukuTvoperatorMediaPageQueryModel 结构体

Jump to

Keyboard shortcuts

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