usecases

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 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,
) *CommonUseCases

func (*CommonUseCases) AddToy

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

func (*CommonUseCases) GetAllCategories

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

func (*CommonUseCases) GetAllMasters

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

func (*CommonUseCases) GetAllTags

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

func (*CommonUseCases) GetAllToys

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

func (*CommonUseCases) GetCategoryByID

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

func (*CommonUseCases) GetMasterByID

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

func (*CommonUseCases) GetMasterByUserID added in v0.0.7

func (useCases *CommonUseCases) GetMasterByUserID(ctx context.Context, userID uint64) (*entities.Master, error)

func (*CommonUseCases) GetMasterToys added in v0.0.3

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

func (*CommonUseCases) GetTagByID

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

func (*CommonUseCases) GetToyByID

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

func (*CommonUseCases) RegisterMaster

func (useCases *CommonUseCases) RegisterMaster(
	ctx context.Context,
	masterData entities.RegisterMasterDTO,
) (uint64, error)

Jump to

Keyboard shortcuts

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