Documentation ¶
Index ¶
- type VideoService
- func (s *VideoService) CreateVideo(req *video.PutVideoRequest, playURL string, coverURL string) (*db.Video, error)
- func (s *VideoService) FeedVideo(req *video.FeedRequest) ([]db.Video, []*user.User, []int64, []int64, []bool, error)
- func (s *VideoService) GetFavoriteVideoInfo(req *video.GetFavoriteVideoInfoRequest) ([]db.Video, []*user.User, []int64, []int64, error)
- func (s *VideoService) GetPublishVideoInfo(req *video.GetPublishListRequest) ([]db.Video, []*user.User, []int64, []int64, []bool, error)
- func (s *VideoService) GetVideoIDByUid(req *video.GetVideoIDByUidRequset) (videoIDList []int64, err error)
- func (s *VideoService) GetWorkCount(req *video.GetWorkCountRequest) (workCount int64, err error)
- func (s *VideoService) UploadCover(req *video.PutVideoRequest, coverName string) (err error)
- func (s *VideoService) UploadVideo(req *video.PutVideoRequest, videoName string) (err 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
NewVideoService new VideoService
func (*VideoService) CreateVideo ¶
func (s *VideoService) CreateVideo(req *video.PutVideoRequest, playURL string, coverURL string) (*db.Video, error)
func (*VideoService) GetFavoriteVideoInfo ¶
func (s *VideoService) GetFavoriteVideoInfo(req *video.GetFavoriteVideoInfoRequest) ([]db.Video, []*user.User, []int64, []int64, error)
func (*VideoService) GetPublishVideoInfo ¶
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)
Click to show internal directories.
Click to hide internal directories.