Documentation ¶
Index ¶
- type VideoUseCase
- func (uc *VideoUseCase) FeedShortVideo(ctx context.Context, request *service_dto.FeedShortVideoRequest) (*service_dto.FeedShortVideoResponse, error)
- func (uc *VideoUseCase) GetVideoById(ctx context.Context, videoId int64) (*entity.Video, error)
- func (uc *VideoUseCase) GetVideoByIdList(ctx context.Context, videoIdList []int64) ([]*entity.Video, error)
- func (uc *VideoUseCase) ListPublishedVideo(ctx context.Context, request *service_dto.ListPublishedVideoRequest) (*service_dto.ListPublishedVideoResponse, error)
- func (uc *VideoUseCase) PublishVideo(ctx context.Context, in *service_dto.PublishVideoRequest) (int64, error)
- type VideoUsecase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VideoUseCase ¶
type VideoUseCase struct {
// contains filtered or unexported fields
}
func NewVideoUseCase ¶
func NewVideoUseCase( config *conf.Config, userRepo userdata.IUserRepo, videoRepo videodata.IVideoRepo, ) *VideoUseCase
func (*VideoUseCase) FeedShortVideo ¶
func (uc *VideoUseCase) FeedShortVideo(ctx context.Context, request *service_dto.FeedShortVideoRequest) (*service_dto.FeedShortVideoResponse, error)
func (*VideoUseCase) GetVideoById ¶
func (*VideoUseCase) GetVideoByIdList ¶ added in v0.1.6
func (*VideoUseCase) ListPublishedVideo ¶
func (uc *VideoUseCase) ListPublishedVideo(ctx context.Context, request *service_dto.ListPublishedVideoRequest) (*service_dto.ListPublishedVideoResponse, error)
func (*VideoUseCase) PublishVideo ¶
func (uc *VideoUseCase) PublishVideo(ctx context.Context, in *service_dto.PublishVideoRequest) (int64, error)
type VideoUsecase ¶
type VideoUsecase interface { FeedShortVideo(ctx context.Context, request *dto.FeedShortVideoRequest) (*dto.FeedShortVideoResponse, error) GetVideoById(ctx context.Context, videoId int64) (*entity.Video, error) GetVideoByIdList(ctx context.Context, videoIdList []int64) ([]*entity.Video, error) PublishVideo(ctx context.Context, video *dto.PublishVideoRequest) (int64, error) ListPublishedVideo(ctx context.Context, request *dto.ListPublishedVideoRequest) (*dto.ListPublishedVideoResponse, error) }
Click to show internal directories.
Click to hide internal directories.