interfaces

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ICategoryService

type ICategoryService interface {
	GetAll(filter string, page int64, pageSize int64) ([]models.Category, error)
	GetById(id primitive.ObjectID) (*models.Category, error)
	Create(insertCategory dto.InsertCategory) (*models.Category, error)
	Update(id primitive.ObjectID, newData dto.InsertCategory) (*models.Category, error)
	Delete(id primitive.ObjectID) error
	GetVideosByCategoryId(id primitive.ObjectID) ([]models.Video, error)
	GetFreeCategory() *models.Category
}

type IVideoService

type IVideoService interface {
	GetAllFreeVideos() ([]models.Video, error)
	GetAll(filter string, page int64, pageSize int64) ([]models.Video, error)
	GetByID(id primitive.ObjectID) (*models.Video, error)
	Create(video dto.InsertVideo) (*models.Video, error)
	Update(id primitive.ObjectID, newData dto.InsertVideo) (*models.Video, error)
	Delete(id primitive.ObjectID) error
}

Jump to

Keyboard shortcuts

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