commands

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMovieCreateCommand

type IMovieCreateCommand interface {
	Handler(movie models.Movie) (err error)
}

type IMovieDeleteCommand

type IMovieDeleteCommand interface {
	Handler(id int64) (err error)
}

type IMovieUpdateCommand

type IMovieUpdateCommand interface {
	Handler(id int64, movie models.Movie) (err error)
}

type MovieCreateCommand

type MovieCreateCommand struct {
	MovieCreateService services.IMovieCreateService
}

func (*MovieCreateCommand) Handler

func (command *MovieCreateCommand) Handler(movie models.Movie) (err error)

type MovieDeleteCommand

type MovieDeleteCommand struct {
	MovieDeleteService services.IMovieDeleteService
}

func (*MovieDeleteCommand) Handler

func (command *MovieDeleteCommand) Handler(id int64) (err error)

type MovieUpdateCommand

type MovieUpdateCommand struct {
	MovieUpdateService services.IMovieUpdateService
}

func (*MovieUpdateCommand) Handler

func (command *MovieUpdateCommand) Handler(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