discount

package
v0.0.0-...-c52fe67 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

type Service

type Service struct {
	Mail               mail.Helper
	UserService        service.UserService
	GameRepository     repository.GameRepository
	DiscountRepository repository.DiscountRepository
}

func (*Service) Archive

func (s *Service) Archive(ctx context.Context, i *entity.Discount) error

func (*Service) Create

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, id uint) error

func (*Service) GetByFilter

func (s *Service) GetByFilter(ctx context.Context, data *service.GetByFilterDiscountData) ([]entity.Discount, error)

func (*Service) GetByID

func (s *Service) GetByID(ctx context.Context, id uint) (*entity.Discount, error)

func (*Service) GetCountByFilter

func (s *Service) GetCountByFilter(ctx context.Context, data *service.GetByFilterDiscountData) (int, error)

func (*Service) GetRunning

func (s *Service) GetRunning(ctx context.Context) ([]entity.Discount, error)

func (*Service) GetToArchive

func (s *Service) GetToArchive(ctx context.Context) ([]entity.Discount, error)

func (*Service) GetToStart

func (s *Service) GetToStart(ctx context.Context) ([]entity.Discount, error)

func (*Service) Start

func (s *Service) Start(ctx context.Context, i *entity.Discount) error

func (*Service) Update

type ServiceParams

type ServiceParams struct {
	fx.In

	Mail               mail.Helper
	UserService        service.UserService
	GameRepository     repository.GameRepository
	DiscountRepository repository.DiscountRepository
}

Jump to

Keyboard shortcuts

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