Documentation ¶
Index ¶
- type CommonCategoriesRepository
- type CommonMastersRepository
- func (repo *CommonMastersRepository) GetAllMasters() ([]entities.Master, error)
- func (repo *CommonMastersRepository) GetMasterByID(id uint64) (*entities.Master, error)
- func (repo *CommonMastersRepository) GetMasterByUserID(userID uint64) (*entities.Master, error)
- func (repo *CommonMastersRepository) RegisterMaster(masterData entities.RegisterMasterDTO) (uint64, error)
- type CommonTagsRepository
- type CommonToysRepository
- func (repo *CommonToysRepository) AddToy(toyData entities.AddToyDTO) (uint64, error)
- func (repo *CommonToysRepository) GetAllToys() ([]entities.Toy, error)
- func (repo *CommonToysRepository) GetMasterToys(masterID uint64) ([]entities.Toy, error)
- func (repo *CommonToysRepository) GetToyByID(id uint64) (*entities.Toy, error)
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)
Click to show internal directories.
Click to hide internal directories.