database

package
v0.0.0-...-ffd3783 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 (r *CategoryRepository) DeleteCategory(ctx context.Context, id ulid.ULID) error

func (*CategoryRepository) GetCategories

func (r *CategoryRepository) GetCategories(ctx context.Context) ([]*domain.Category, int, error)

func (*CategoryRepository) GetCategory

func (r *CategoryRepository) GetCategory(ctx context.Context, id ulid.ULID) (*domain.Category, error)

func (*CategoryRepository) UpdateCategory

func (r *CategoryRepository) UpdateCategory(ctx context.Context, id ulid.ULID, ucc *domain.UpdateCategoryCommand) error

Jump to

Keyboard shortcuts

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