Documentation ¶
Index ¶
- type CommonCategoriesService
- type CommonMastersService
- func (service *CommonMastersService) GetAllMasters(ctx context.Context) ([]entities.Master, error)
- func (service *CommonMastersService) GetMasterByID(ctx context.Context, id uint64) (*entities.Master, error)
- func (service *CommonMastersService) GetMasterByUserID(ctx context.Context, userID uint64) (*entities.Master, error)
- func (service *CommonMastersService) RegisterMaster(ctx context.Context, masterData entities.RegisterMasterDTO) (uint64, error)
- type CommonTagsService
- type CommonToysService
- func (service *CommonToysService) AddToy(ctx context.Context, toyData entities.AddToyDTO) (uint64, error)
- func (service *CommonToysService) GetAllToys(ctx context.Context) ([]entities.Toy, error)
- func (service *CommonToysService) GetMasterToys(ctx context.Context, masterID uint64) ([]entities.Toy, error)
- func (service *CommonToysService) GetToyByID(ctx context.Context, id uint64) (*entities.Toy, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonCategoriesService ¶
type CommonCategoriesService struct {
// contains filtered or unexported fields
}
func NewCommonCategoriesService ¶
func NewCommonCategoriesService( categoriesRepository interfaces.CategoriesRepository, logger *slog.Logger, ) *CommonCategoriesService
func (*CommonCategoriesService) GetAllCategories ¶
func (*CommonCategoriesService) GetCategoryByID ¶
type CommonMastersService ¶
type CommonMastersService struct {
// contains filtered or unexported fields
}
func NewCommonMastersService ¶
func NewCommonMastersService( mastersRepository interfaces.MastersRepository, logger *slog.Logger, ) *CommonMastersService
func (*CommonMastersService) GetAllMasters ¶
func (*CommonMastersService) GetMasterByID ¶
func (*CommonMastersService) GetMasterByUserID ¶
func (*CommonMastersService) RegisterMaster ¶
func (service *CommonMastersService) RegisterMaster( ctx context.Context, masterData entities.RegisterMasterDTO, ) (uint64, error)
type CommonTagsService ¶
type CommonTagsService struct {
// contains filtered or unexported fields
}
func NewCommonTagsService ¶
func NewCommonTagsService( tagsRepository interfaces.TagsRepository, logger *slog.Logger, ) *CommonTagsService
func (*CommonTagsService) GetAllTags ¶
func (*CommonTagsService) GetTagByID ¶
type CommonToysService ¶
type CommonToysService struct {
// contains filtered or unexported fields
}
func NewCommonToysService ¶
func NewCommonToysService( toysRepository interfaces.ToysRepository, logger *slog.Logger, ) *CommonToysService
func (*CommonToysService) GetAllToys ¶
func (*CommonToysService) GetMasterToys ¶ added in v0.0.3
func (*CommonToysService) GetToyByID ¶
Click to show internal directories.
Click to hide internal directories.