video

package
v0.0.0-...-6db71ed Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PLUS  = 1
	MINUS = 2
)
View Source
const (
	MaxVideoNum = 30
)

MaxVideoNum 每次最多返回的视频流数量

Variables

This section is empty.

Functions

func PostFavorState

func PostFavorState(userId, videoId, actionType int64) error

func PostVideo

func PostVideo(userId int64, videoName, coverName, title string) error

PostVideo 投稿视频

Types

type FavorList

type FavorList struct {
	Videos []*models.Video `json:"video_list"`
}

func QueryFavorVideoList

func QueryFavorVideoList(userId int64) (*FavorList, error)

type FeedVideoList

type FeedVideoList struct {
	Videos   []*models.Video `json:"video_list,omitempty"`
	NextTime int64           `json:"next_time,omitempty"`
}

func QueryFeedVideoList

func QueryFeedVideoList(userId int64, latestTime time.Time) (*FeedVideoList, error)

type List

type List struct {
	Videos []*models.Video `json:"video_list,omitempty"`
}

func QueryVideoListByUserId

func QueryVideoListByUserId(userId int64) (*List, error)

type PostFavorStateFlow

type PostFavorStateFlow struct {
	// contains filtered or unexported fields
}

func NewPostFavorStateFlow

func NewPostFavorStateFlow(userId, videoId, action int64) *PostFavorStateFlow

func (*PostFavorStateFlow) Do

func (p *PostFavorStateFlow) Do() error

func (*PostFavorStateFlow) MinusOperation

func (p *PostFavorStateFlow) MinusOperation() error

MinusOperation 取消点赞

func (*PostFavorStateFlow) PlusOperation

func (p *PostFavorStateFlow) PlusOperation() error

PlusOperation 点赞操作

type PostVideoFlow

type PostVideoFlow struct {
	// contains filtered or unexported fields
}

func NewPostVideoFlow

func NewPostVideoFlow(userId int64, videoName, coverName, title string) *PostVideoFlow

func (*PostVideoFlow) Do

func (f *PostVideoFlow) Do() error

type QueryFavorVideoListFlow

type QueryFavorVideoListFlow struct {
	// contains filtered or unexported fields
}

func NewQueryFavorVideoListFlow

func NewQueryFavorVideoListFlow(userId int64) *QueryFavorVideoListFlow

func (*QueryFavorVideoListFlow) Do

type QueryFeedVideoListFlow

type QueryFeedVideoListFlow struct {
	// contains filtered or unexported fields
}

func NewQueryFeedVideoListFlow

func NewQueryFeedVideoListFlow(userId int64, latestTime time.Time) *QueryFeedVideoListFlow

func (*QueryFeedVideoListFlow) Do

type QueryVideoListByUserIdFlow

type QueryVideoListByUserIdFlow struct {
	// contains filtered or unexported fields
}

func NewQueryVideoListByUserIdFlow

func NewQueryVideoListByUserIdFlow(userId int64) *QueryVideoListByUserIdFlow

func (*QueryVideoListByUserIdFlow) Do

Jump to

Keyboard shortcuts

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