Documentation ¶
Index ¶
- Constants
- func PostFavorState(userId, videoId, actionType int64) error
- func PostVideo(userId int64, videoName, coverName, title string) error
- type FavorList
- type FeedVideoList
- type List
- type PostFavorStateFlow
- type PostVideoFlow
- type QueryFavorVideoListFlow
- type QueryFeedVideoListFlow
- type QueryVideoListByUserIdFlow
Constants ¶
View Source
const ( PLUS = 1 MINUS = 2 )
View Source
const (
MaxVideoNum = 30
)
MaxVideoNum 每次最多返回的视频流数量
Variables ¶
This section is empty.
Functions ¶
func PostFavorState ¶
Types ¶
type FavorList ¶
func QueryFavorVideoList ¶
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 ¶
func QueryVideoListByUserId ¶
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 ¶
func (q *QueryFavorVideoListFlow) Do() (*FavorList, error)
type QueryFeedVideoListFlow ¶
type QueryFeedVideoListFlow struct {
// contains filtered or unexported fields
}
func NewQueryFeedVideoListFlow ¶
func NewQueryFeedVideoListFlow(userId int64, latestTime time.Time) *QueryFeedVideoListFlow
func (*QueryFeedVideoListFlow) Do ¶
func (q *QueryFeedVideoListFlow) Do() (*FeedVideoList, error)
type QueryVideoListByUserIdFlow ¶
type QueryVideoListByUserIdFlow struct {
// contains filtered or unexported fields
}
func NewQueryVideoListByUserIdFlow ¶
func NewQueryVideoListByUserIdFlow(userId int64) *QueryVideoListByUserIdFlow
func (*QueryVideoListByUserIdFlow) Do ¶
func (q *QueryVideoListByUserIdFlow) Do() (*List, error)
Click to show internal directories.
Click to hide internal directories.