videodomain

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

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 (*VideoUseCase) GetVideoById

func (uc *VideoUseCase) GetVideoById(ctx context.Context, videoId int64) (*entity.Video, error)

func (*VideoUseCase) GetVideoByIdList added in v0.1.6

func (uc *VideoUseCase) GetVideoByIdList(ctx context.Context, videoIdList []int64) ([]*entity.Video, 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)
}

Jump to

Keyboard shortcuts

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