Documentation ¶
Index ¶
- type MovieService
- func (s *MovieService) Create(ctx context.Context, request *model.Request) (int, error)
- func (s *MovieService) Delete(ctx context.Context, request *movie.FitterDeleteMovie) (*model.DeleteResponseMovie, error)
- func (s *MovieService) Get(ctx context.Context, request *model.FitterReadMovie) (*model.ReadResponseMovie, error)
- func (s *MovieService) List(ctx context.Context, request *model.FitterListMovie, ...) (*utils.Pagination, error)
- func (s *MovieService) Update(ctx context.Context, request *model.FitterUpdateMovie) (*model.UpdateResponseMovie, error)
- type Service
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) Delete ¶
func (s *MovieService) Delete(ctx context.Context, request *movie.FitterDeleteMovie) (*model.DeleteResponseMovie, error)
func (*MovieService) Get ¶
func (s *MovieService) Get(ctx context.Context, request *model.FitterReadMovie) (*model.ReadResponseMovie, error)
func (*MovieService) List ¶
func (s *MovieService) List(ctx context.Context, request *model.FitterListMovie, pagination *utils.PaginationOptions) (*utils.Pagination, error)
func (*MovieService) Update ¶
func (s *MovieService) Update(ctx context.Context, request *model.FitterUpdateMovie) (*model.UpdateResponseMovie, error)
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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.