feedaction

package
v0.0.0-...-18974b4 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertAllVideoInfo

func ConvertAllVideoInfo(ctx context.Context, userId int64, list []operation.TVideoInfo) (res []*feed.VideoInfo, err error)

func ConvertVideoInfo

func ConvertVideoInfo(ctx context.Context, userId int64, info operation.TVideoInfo) (res *feed.VideoInfo, err error)

func GetVideoList

func GetVideoList(ctx context.Context, userId int64, latestTime int64) (list []*feed.VideoInfo, nextTime *int64, err error)

func GetVideoListById

func GetVideoListById(ctx context.Context, userId int64, queryId int64) (list []*feed.VideoInfo, err error)

func GetVideoListByIdHandler

func GetVideoListByIdHandler(ctx context.Context, request *feed.GetByIDRequest) (resp *feed.FeedResponse, err error)

func GetVideoListHandler

func GetVideoListHandler(ctx context.Context, request *feed.FeedRequest) (resp *feed.FeedResponse, err error)

func PackResponse

func PackResponse(list []*feed.VideoInfo, status constant.Status, nextTime *int64) (response *feed.FeedResponse)

func ParseToken

func ParseToken(token string) (int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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