Documentation ¶
Index ¶
- type CommonCategoriesRepository
- type CommonMastersRepository
- func (repo *CommonMastersRepository) GetAllMasters(ctx context.Context) ([]entities.Master, error)
- func (repo *CommonMastersRepository) GetMasterByID(ctx context.Context, id uint64) (*entities.Master, error)
- func (repo *CommonMastersRepository) GetMasterByUserID(ctx context.Context, userID uint64) (*entities.Master, error)
- func (repo *CommonMastersRepository) RegisterMaster(ctx context.Context, masterData entities.RegisterMasterDTO) (uint64, error)
- type CommonTagsRepository
- type CommonToysRepository
- func (repo *CommonToysRepository) AddToy(ctx context.Context, toyData entities.AddToyDTO) (uint64, error)
- func (repo *CommonToysRepository) GetAllToys(ctx context.Context) ([]entities.Toy, error)
- func (repo *CommonToysRepository) GetMasterToys(ctx context.Context, masterID uint64) ([]entities.Toy, error)
- func (repo *CommonToysRepository) 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 CommonCategoriesRepository ¶
type CommonCategoriesRepository struct {
// contains filtered or unexported fields
}
func NewCommonCategoriesRepository ¶
func NewCommonCategoriesRepository( dbConnector db.Connector, logger *slog.Logger, ) *CommonCategoriesRepository
func (*CommonCategoriesRepository) GetAllCategories ¶
func (*CommonCategoriesRepository) GetCategoryByID ¶
type CommonMastersRepository ¶
type CommonMastersRepository struct {
// contains filtered or unexported fields
}
func NewCommonMastersRepository ¶
func NewCommonMastersRepository( dbConnector db.Connector, logger *slog.Logger, ) *CommonMastersRepository
func (*CommonMastersRepository) GetAllMasters ¶
func (*CommonMastersRepository) GetMasterByID ¶
func (*CommonMastersRepository) GetMasterByUserID ¶
func (*CommonMastersRepository) RegisterMaster ¶
func (repo *CommonMastersRepository) RegisterMaster( ctx context.Context, masterData entities.RegisterMasterDTO, ) (uint64, error)
type CommonTagsRepository ¶
type CommonTagsRepository struct {
// contains filtered or unexported fields
}
func NewCommonTagsRepository ¶
func NewCommonTagsRepository( dbConnector db.Connector, logger *slog.Logger, ) *CommonTagsRepository
func (*CommonTagsRepository) GetAllTags ¶
func (*CommonTagsRepository) GetTagByID ¶
type CommonToysRepository ¶
type CommonToysRepository struct {
// contains filtered or unexported fields
}
func NewCommonToysRepository ¶
func NewCommonToysRepository( dbConnector db.Connector, logger *slog.Logger, ) *CommonToysRepository
func (*CommonToysRepository) GetAllToys ¶
func (*CommonToysRepository) GetMasterToys ¶
func (*CommonToysRepository) GetToyByID ¶
Click to show internal directories.
Click to hide internal directories.