repository

package
v0.0.0-...-454c3e9 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	repository.Repository
}

func New

func New() *Repository

New create new repository

func (*Repository) Count

func (r *Repository) Count(ctx context.Context, qops ...category.Option) (count int64, err error)

func (*Repository) Create

func (r *Repository) Create(ctx context.Context, object *models.Category) (uint64, error)

func (*Repository) Delete

func (r *Repository) Delete(ctx context.Context, id uint64) error

func (*Repository) FetchList

func (r *Repository) FetchList(ctx context.Context, qops ...category.Option) (list []*models.Category, err error)

func (*Repository) Get

func (r *Repository) Get(ctx context.Context, id uint64) (*models.Category, error)

func (*Repository) Update

func (r *Repository) Update(ctx context.Context, id uint64, object *models.Category) error

Jump to

Keyboard shortcuts

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