Documentation ¶
Index ¶
- type CommonUseCases
- func (useCases *CommonUseCases) AddToy(rawToyData entities.RawAddToyDTO) (uint64, error)
- func (useCases *CommonUseCases) GetAllCategories() ([]*entities.Category, error)
- func (useCases *CommonUseCases) GetAllMasters() ([]*entities.Master, error)
- func (useCases *CommonUseCases) GetAllTags() ([]*entities.Tag, error)
- func (useCases *CommonUseCases) GetAllToys() ([]*entities.Toy, error)
- func (useCases *CommonUseCases) GetCategoryByID(id uint32) (*entities.Category, error)
- func (useCases *CommonUseCases) GetMasterByID(id uint64) (*entities.Master, error)
- func (useCases *CommonUseCases) GetTagByID(id uint32) (*entities.Tag, error)
- func (useCases *CommonUseCases) GetToyByID(id uint64) (*entities.Toy, error)
- func (useCases *CommonUseCases) RegisterMaster(rawMasterData entities.RawRegisterMasterDTO) (uint64, error)
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)
Click to show internal directories.
Click to hide internal directories.