Documentation ¶
Index ¶
- type CommonUseCases
- func (useCases *CommonUseCases) AddToy(ctx context.Context, rawToyData entities.RawAddToyDTO) (uint64, error)
- func (useCases *CommonUseCases) GetAllCategories(ctx context.Context) ([]entities.Category, error)
- func (useCases *CommonUseCases) GetAllMasters(ctx context.Context) ([]entities.Master, error)
- func (useCases *CommonUseCases) GetAllTags(ctx context.Context) ([]entities.Tag, error)
- func (useCases *CommonUseCases) GetAllToys(ctx context.Context) ([]entities.Toy, error)
- func (useCases *CommonUseCases) GetCategoryByID(ctx context.Context, id uint32) (*entities.Category, error)
- func (useCases *CommonUseCases) GetMasterByID(ctx context.Context, id uint64) (*entities.Master, error)
- func (useCases *CommonUseCases) GetMasterByUserID(ctx context.Context, userID uint64) (*entities.Master, error)
- func (useCases *CommonUseCases) GetMasterToys(ctx context.Context, masterID uint64) ([]entities.Toy, error)
- func (useCases *CommonUseCases) GetTagByID(ctx context.Context, id uint32) (*entities.Tag, error)
- func (useCases *CommonUseCases) GetToyByID(ctx context.Context, id uint64) (*entities.Toy, error)
- func (useCases *CommonUseCases) RegisterMaster(ctx context.Context, masterData entities.RegisterMasterDTO) (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, ) *CommonUseCases
func (*CommonUseCases) AddToy ¶
func (useCases *CommonUseCases) AddToy(ctx context.Context, rawToyData entities.RawAddToyDTO) (uint64, error)
func (*CommonUseCases) GetAllCategories ¶
func (*CommonUseCases) GetAllMasters ¶
func (*CommonUseCases) GetAllTags ¶
func (*CommonUseCases) GetAllToys ¶
func (*CommonUseCases) GetCategoryByID ¶
func (*CommonUseCases) GetMasterByID ¶
func (*CommonUseCases) GetMasterByUserID ¶ added in v0.0.7
func (*CommonUseCases) GetMasterToys ¶ added in v0.0.3
func (*CommonUseCases) GetTagByID ¶
func (*CommonUseCases) GetToyByID ¶
func (*CommonUseCases) RegisterMaster ¶
func (useCases *CommonUseCases) RegisterMaster( ctx context.Context, masterData entities.RegisterMasterDTO, ) (uint64, error)
Click to show internal directories.
Click to hide internal directories.