services

package
v0.0.0-...-e5ef398 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMovieCreateService

type IMovieCreateService interface {
	Add(movie models.Movie) (err error)
}

type IMovieDeleteService

type IMovieDeleteService interface {
	Remove(id int64) (err error)
}

type IMovieFindService

type IMovieFindService interface {
	Find(id int64) (movie models.Movie, err error)
}

type IMovieUpdateService

type IMovieUpdateService interface {
	Update(id int64, movie models.Movie) (err error)
}

type MovieCreateService

type MovieCreateService struct {
	MovieRepository repositories.IMovieRepository
}

func (*MovieCreateService) Add

func (service *MovieCreateService) Add(movie models.Movie) (err error)

type MovieDeleteService

type MovieDeleteService struct {
	MovieRepository repositories.IMovieRepository
}

func (*MovieDeleteService) Remove

func (service *MovieDeleteService) Remove(id int64) (err error)

type MovieFindService

type MovieFindService struct {
	MovieRepository      repositories.IMovieRepository
	MovieRedisRepository repositories.IMovieRedisRepository
}

func (*MovieFindService) Find

func (service *MovieFindService) Find(id int64) (movie models.Movie, err error)

type MovieUpdateService

type MovieUpdateService struct {
	MovieRepository repositories.IMovieRepository
}

func (*MovieUpdateService) Update

func (service *MovieUpdateService) Update(id int64, movie models.Movie) (err error)

Jump to

Keyboard shortcuts

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