Documentation ¶
Index ¶
- type VideoService
- func (s *VideoService) Create(req *video.PutVideoRequest, userId int64, playUrl string, coverUrl string) (*db.Video, error)
- func (s *VideoService) Feed(req *video.FeedRequest)
- func (s *VideoService) GetFavouriteVideo(req *video.GetFavoriteVideoInfoRequest) ([]*video.Video, error)
- func (s *VideoService) GetPublishVideoInfo(req *video.GetPublishListRequest) ([]*video.Video, error)
- func (s *VideoService) UploadCover(req *video.PutVideoRequest, coverName string) (err error)
- func (s *VideoService) UploadVideo(req *video.PutVideoRequest, videoName string) (err error)
- func (s *VideoService) WorkCount(req *video.GetWorkCountRequest) (int64, error)
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) Feed ¶
func (s *VideoService) Feed(req *video.FeedRequest)
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)
Click to show internal directories.
Click to hide internal directories.