repositories

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonCategoriesRepository

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

func NewCommonCategoriesRepository

func NewCommonCategoriesRepository(dbConnector db.Connector) *CommonCategoriesRepository

func (*CommonCategoriesRepository) GetAllCategories

func (repo *CommonCategoriesRepository) GetAllCategories() ([]entities.Category, error)

func (*CommonCategoriesRepository) GetCategoryByID

func (repo *CommonCategoriesRepository) GetCategoryByID(id uint32) (*entities.Category, error)

type CommonMastersRepository

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

func NewCommonMastersRepository

func NewCommonMastersRepository(dbConnector db.Connector) *CommonMastersRepository

func (*CommonMastersRepository) GetAllMasters

func (repo *CommonMastersRepository) GetAllMasters() ([]entities.Master, error)

func (*CommonMastersRepository) GetMasterByID

func (repo *CommonMastersRepository) GetMasterByID(id uint64) (*entities.Master, error)

func (*CommonMastersRepository) GetMasterByUserID

func (repo *CommonMastersRepository) GetMasterByUserID(userID uint64) (*entities.Master, error)

func (*CommonMastersRepository) RegisterMaster

func (repo *CommonMastersRepository) RegisterMaster(masterData entities.RegisterMasterDTO) (uint64, error)

type CommonTagsRepository

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

func NewCommonTagsRepository

func NewCommonTagsRepository(dbConnector db.Connector) *CommonTagsRepository

func (*CommonTagsRepository) GetAllTags

func (repo *CommonTagsRepository) GetAllTags() ([]entities.Tag, error)

func (*CommonTagsRepository) GetTagByID

func (repo *CommonTagsRepository) GetTagByID(id uint32) (*entities.Tag, error)

func (*CommonTagsRepository) GetToyTags

func (repo *CommonTagsRepository) GetToyTags(toyID uint64) ([]entities.Tag, error)

type CommonToysRepository

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

func NewCommonToysRepository

func NewCommonToysRepository(dbConnector db.Connector) *CommonToysRepository

func (*CommonToysRepository) AddToy

func (repo *CommonToysRepository) AddToy(toyData entities.AddToyDTO) (uint64, error)

func (*CommonToysRepository) GetAllToys

func (repo *CommonToysRepository) GetAllToys() ([]entities.Toy, error)

func (*CommonToysRepository) GetMasterToys

func (repo *CommonToysRepository) GetMasterToys(masterID uint64) ([]entities.Toy, error)

func (*CommonToysRepository) GetToyByID

func (repo *CommonToysRepository) GetToyByID(id uint64) (*entities.Toy, error)

Jump to

Keyboard shortcuts

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