movie

package
v0.0.0-...-05e5575 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 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 MovieService

type MovieService struct {
	// contains filtered or unexported fields
}

func (*MovieService) Create

func (s *MovieService) Create(ctx context.Context, request *model.Request) (int, error)

func (*MovieService) Delete

func (*MovieService) Get

func (*MovieService) List

func (*MovieService) Update

type Service

type Service interface {
	Create(ctx context.Context, input *model.Request) (ID int, err error)
	Get(ctx context.Context, request *model.FitterReadMovie) (*model.ReadResponseMovie, error)
	Delete(ctx context.Context, input *movie.FitterDeleteMovie) (*model.DeleteResponseMovie, error)
	Update(ctx context.Context, request *model.FitterUpdateMovie) (*model.UpdateResponseMovie, error)
	List(ctx context.Context, request *model.FitterListMovie, pagination *utils.PaginationOptions) (*utils.Pagination, error)
}

func NewService

func NewService(r postgres.Repository) (service Service)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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