externaldata

package
v0.0.0-...-ad78adf Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseInfo

type BaseInfo struct {
	util.CommonError
	Result struct {
		TotalLike           int64   `json:"total_like"`
		TotalComment        int64   `json:"total_comment"`
		TotalShare          int64   `json:"total_share"`
		AveragePlayDuration float32 `json:"avg_play_duration"`
		TotalPlay           int64   `json:"total_play"`
	} `json:"result"`
}

type BaseInfoRes

type BaseInfoRes struct {
	util.CommonErrorExtra
	Data BaseInfo `json:"data"`
}

type ExternalVideo

type ExternalVideo struct {
	*context.Context
}

Video 视频

func NewExternalVideo

func NewExternalVideo(context *context.Context) *ExternalVideo

NewVideo .

func (*ExternalVideo) Base

func (externalVideo *ExternalVideo) Base(accessToken, openid, itemId string) (info *BaseInfo, err error)

func (*ExternalVideo) Like

func (externalVideo *ExternalVideo) Like(accessToken, openid, itemId string, dateType int) (info *LikeInfo, err error)

type Externaldata

type Externaldata struct {
	*context.Context
}

Externaldata 数据开放服务.

func NewExternaldata

func NewExternaldata(context *context.Context) *Externaldata

NewExternaldata .

type LikeInfo

type LikeInfo struct {
	util.CommonError
	ResultList []struct {
		Date string `json:"date"`
		Like int64  `json:"like"`
	} `json:"result_list"`
}

type LikeInfoRes

type LikeInfoRes struct {
	util.CommonErrorExtra
	Data LikeInfo `json:"data"`
}

Jump to

Keyboard shortcuts

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