usecases

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonUseCases

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

func NewCommonUseCases

func NewCommonUseCases(
	tagsService interfaces.TagsService,
	categoriesService interfaces.CategoriesService,
	mastersService interfaces.MastersService,
	toysService interfaces.ToysService,
	jwtConfig security.JWTConfig,
) *CommonUseCases

func (*CommonUseCases) AddToy

func (useCases *CommonUseCases) AddToy(rawToyData entities.RawAddToyDTO) (uint64, error)

func (*CommonUseCases) GetAllCategories

func (useCases *CommonUseCases) GetAllCategories() ([]*entities.Category, error)

func (*CommonUseCases) GetAllMasters

func (useCases *CommonUseCases) GetAllMasters() ([]*entities.Master, error)

func (*CommonUseCases) GetAllTags

func (useCases *CommonUseCases) GetAllTags() ([]*entities.Tag, error)

func (*CommonUseCases) GetAllToys

func (useCases *CommonUseCases) GetAllToys() ([]*entities.Toy, error)

func (*CommonUseCases) GetCategoryByID

func (useCases *CommonUseCases) GetCategoryByID(id uint32) (*entities.Category, error)

func (*CommonUseCases) GetMasterByID

func (useCases *CommonUseCases) GetMasterByID(id uint64) (*entities.Master, error)

func (*CommonUseCases) GetTagByID

func (useCases *CommonUseCases) GetTagByID(id uint32) (*entities.Tag, error)

func (*CommonUseCases) GetToyByID

func (useCases *CommonUseCases) GetToyByID(id uint64) (*entities.Toy, error)

func (*CommonUseCases) RegisterMaster

func (useCases *CommonUseCases) RegisterMaster(rawMasterData entities.RawRegisterMasterDTO) (uint64, error)

Jump to

Keyboard shortcuts

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