Documentation ¶
Index ¶
- Variables
- type Video
- func (v *Video) BatchGetVideoByVideoId(vidList []int64) ([]*model.Video, error)
- func (v *Video) CreateVideo(video *model.Video) error
- func (v *Video) DeleteVideoById(videoId int64) error
- func (v *Video) GetVideoByVideoId(vid int64) (*model.Video, error)
- func (v *Video) GetVideoIdListByAuthorId(AuthorId int64) ([]int64, error)
- func (v *Video) GetVideoListByAuthorId(AuthorId int64) ([]*model.Video, error)
- func (v *Video) GetVideoListByLatestTime(latestTime int64) ([]*model.Video, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoSuchRecord = errors.New("no such video record") ErrRecordAlreadyExist = errors.New("video record already exist") )
Functions ¶
This section is empty.
Types ¶
type Video ¶
type Video struct {
// contains filtered or unexported fields
}
func (*Video) BatchGetVideoByVideoId ¶
BatchGetVideoByVideoId gets video list by videoId list.
func (*Video) CreateVideo ¶
CreateVideo creates a new video record.
func (*Video) DeleteVideoById ¶
DeleteVideoById delete video by id.
func (*Video) GetVideoByVideoId ¶
GetVideoByVideoId gets video by videoId
func (*Video) GetVideoIdListByAuthorId ¶
GetVideoIdListByAuthorId gets videos by userId of author.
func (*Video) GetVideoListByAuthorId ¶
GetVideoListByAuthorId gets videos by userId of author.
Click to show internal directories.
Click to hide internal directories.