Documentation
¶
Index ¶
- type CategoryRepository
- func (r *CategoryRepository) CreateCategory(ctx context.Context, ccc *domain.CreateCategoryCommand) error
- func (r *CategoryRepository) DeleteCategory(ctx context.Context, id ulid.ULID) error
- func (r *CategoryRepository) GetCategories(ctx context.Context) ([]*domain.Category, int, error)
- func (r *CategoryRepository) GetCategory(ctx context.Context, id ulid.ULID) (*domain.Category, error)
- func (r *CategoryRepository) UpdateCategory(ctx context.Context, id ulid.ULID, ucc *domain.UpdateCategoryCommand) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryRepository ¶
type CategoryRepository struct {
// contains filtered or unexported fields
}
func NewCategoryRepository ¶
func NewCategoryRepository(db *database.DB) *CategoryRepository
func (*CategoryRepository) CreateCategory ¶
func (r *CategoryRepository) CreateCategory(ctx context.Context, ccc *domain.CreateCategoryCommand) error
func (*CategoryRepository) DeleteCategory ¶
func (*CategoryRepository) GetCategories ¶
func (*CategoryRepository) GetCategory ¶
func (*CategoryRepository) UpdateCategory ¶
func (r *CategoryRepository) UpdateCategory(ctx context.Context, id ulid.ULID, ucc *domain.UpdateCategoryCommand) error
Click to show internal directories.
Click to hide internal directories.