services

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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 (service *CommonCategoriesService) GetAllCategories(ctx context.Context) ([]entities.Category, error)

func (*CommonCategoriesService) GetCategoryByID

func (service *CommonCategoriesService) GetCategoryByID(ctx context.Context, id uint32) (*entities.Category, error)

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 (service *CommonMastersService) GetAllMasters(ctx context.Context) ([]entities.Master, error)

func (*CommonMastersService) GetMasterByID

func (service *CommonMastersService) GetMasterByID(ctx context.Context, id uint64) (*entities.Master, error)

func (*CommonMastersService) GetMasterByUserID

func (service *CommonMastersService) GetMasterByUserID(ctx context.Context, userID uint64) (*entities.Master, error)

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 (service *CommonTagsService) GetAllTags(ctx context.Context) ([]entities.Tag, error)

func (*CommonTagsService) GetTagByID

func (service *CommonTagsService) GetTagByID(ctx context.Context, id uint32) (*entities.Tag, error)

type CommonToysService

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

func NewCommonToysService

func NewCommonToysService(
	toysRepository interfaces.ToysRepository,
	logger *slog.Logger,
) *CommonToysService

func (*CommonToysService) AddToy

func (service *CommonToysService) AddToy(ctx context.Context, toyData entities.AddToyDTO) (uint64, error)

func (*CommonToysService) GetAllToys

func (service *CommonToysService) GetAllToys(ctx context.Context) ([]entities.Toy, error)

func (*CommonToysService) GetMasterToys added in v0.0.3

func (service *CommonToysService) GetMasterToys(ctx context.Context, masterID uint64) ([]entities.Toy, error)

func (*CommonToysService) GetToyByID

func (service *CommonToysService) GetToyByID(ctx context.Context, id uint64) (*entities.Toy, error)

Jump to

Keyboard shortcuts

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