service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VideoService

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

func NewVideoService

func NewVideoService(ctx context.Context) *VideoService

NewVideoService new VideoService

func (*VideoService) CreateVideo

func (s *VideoService) CreateVideo(req *video.PutVideoRequest, playURL string, coverURL string) (*db.Video, error)

func (*VideoService) FeedVideo

func (s *VideoService) FeedVideo(req *video.FeedRequest) ([]db.Video, []*user.User, []int64, []int64, []bool, error)

func (*VideoService) GetFavoriteVideoInfo

func (s *VideoService) GetFavoriteVideoInfo(req *video.GetFavoriteVideoInfoRequest) ([]db.Video, []*user.User, []int64, []int64, error)

func (*VideoService) GetPublishVideoInfo

func (s *VideoService) GetPublishVideoInfo(req *video.GetPublishListRequest) ([]db.Video, []*user.User, []int64, []int64, []bool, error)

func (*VideoService) GetVideoIDByUid

func (s *VideoService) GetVideoIDByUid(req *video.GetVideoIDByUidRequset) (videoIDList []int64, err error)

func (*VideoService) GetWorkCount

func (s *VideoService) GetWorkCount(req *video.GetWorkCountRequest) (workCount int64, err error)

func (*VideoService) UploadCover

func (s *VideoService) UploadCover(req *video.PutVideoRequest, coverName string) (err error)

func (*VideoService) UploadVideo

func (s *VideoService) UploadVideo(req *video.PutVideoRequest, videoName string) (err error)

Jump to

Keyboard shortcuts

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