service

package
v0.0.0-...-5713efe Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 19 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

func (*VideoService) Create

func (s *VideoService) Create(req *video.PutVideoRequest, userId int64, playUrl string, coverUrl string) (*db.Video, error)

func (*VideoService) GetFavouriteVideo

func (s *VideoService) GetFavouriteVideo(req *video.GetFavoriteVideoInfoRequest) ([]*video.Video, error)

func (*VideoService) GetPublishVideoInfo

func (s *VideoService) GetPublishVideoInfo(req *video.GetPublishListRequest) ([]*video.Video, 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)

func (*VideoService) WorkCount

func (s *VideoService) WorkCount(req *video.GetWorkCountRequest) (int64, error)

Jump to

Keyboard shortcuts

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